Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6487)

Unified Diff: chrome/browser/notifications/notification_ui_manager_mac.h

Issue 1925803002: Rename NotificationUIManagerMac to NotificationPlatformBridgeMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_ui_manager_mac.h
diff --git a/chrome/browser/notifications/notification_ui_manager_mac.h b/chrome/browser/notifications/notification_ui_manager_mac.h
deleted file mode 100644
index 16854262ce41440121fc337aa699c229e97250eb..0000000000000000000000000000000000000000
--- a/chrome/browser/notifications/notification_ui_manager_mac.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_MAC_H_
-#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_MAC_H_
-
-#include <set>
-#include <string>
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/macros.h"
-#include "chrome/browser/notifications/notification_platform_bridge.h"
-
-class Notification;
-@class NotificationCenterDelegate;
-@class NSUserNotificationCenter;
-class PrefService;
-
-// This class is an implementation of NotificationPlatfrormBridge that will
-// send platform notifications to the the MacOSX notification center.
-class NotificationUIManagerMac : public NotificationPlatformBridge {
- public:
- explicit NotificationUIManagerMac(
- NSUserNotificationCenter* notification_center);
- ~NotificationUIManagerMac() override;
-
- // NotificationPlatformBridge implementation.
- void Display(const std::string& notification_id,
- const std::string& profile_id,
- bool incognito,
- const Notification& notification) override;
- void Close(const std::string& profile_id,
- const std::string& notification_id) override;
- bool GetDisplayed(const std::string& profile_id,
- bool incognito,
- std::set<std::string>* notifications) const override;
- bool SupportsNotificationCenter() const override;
-
- private:
- // Cocoa class that receives callbacks from the NSUserNotificationCenter.
- base::scoped_nsobject<NotificationCenterDelegate> delegate_;
-
- // The notification center to use, this can be overriden in tests
- NSUserNotificationCenter* notification_center_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerMac);
-};
-
-#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698