// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.notifications; import android.app.Notification; import android.app.NotificationManager; /** * Default implementation of the NotificationManagerProxy, which passes through all calls to the * normal Android Notification Manager. */ public class NotificationManagerProxyImpl implements NotificationManagerProxy { private final NotificationManager mNotificationManager; public NotificationManagerProxyImpl(NotificationManager notificationManager) { mNotificationManager = notificationManager; } @Override public void cancel(int id) { mNotificationManager.cancel(id); } @Override public void cancel(String tag, int id) { mNotificationManager.cancel(tag, id); } @Override public void cancelAll() { mNotificationManager.cancelAll(); } @Override public void notify(int id, Notification notification) { mNotificationManager.notify(id, notification); } @Override public void notify(String tag, int id, Notification notification) { mNotificationManager.notify(tag, id, notification); } }