Index: chrome/browser/notifications/native_notification_display_service.h |
diff --git a/chrome/browser/notifications/native_notification_display_service.h b/chrome/browser/notifications/native_notification_display_service.h |
index b02bac986c490cf01947d7266e96a70f3ca2bec9..a4eccc9426aa962bc143fbd626e4c061563f5aba 100644 |
--- a/chrome/browser/notifications/native_notification_display_service.h |
+++ b/chrome/browser/notifications/native_notification_display_service.h |
@@ -17,13 +17,8 @@ |
#include "chrome/browser/notifications/notification_common.h" |
#include "chrome/browser/notifications/notification_display_service.h" |
-namespace base { |
-class NullableString16; |
-} |
- |
class MessageCenterDisplayService; |
class Notification; |
-class NotificationHandler; |
class NotificationPlatformBridge; |
class Profile; |
@@ -44,26 +39,7 @@ class NativeNotificationDisplayService : public NotificationDisplayService { |
const std::string& notification_id) override; |
void GetDisplayed(const DisplayedNotificationsCallback& callback) override; |
- // Used by the notification bridge to propagate back events (click, close...). |
- void ProcessNotificationOperation(NotificationCommon::Operation operation, |
- NotificationCommon::Type notification_type, |
- const std::string& origin, |
- const std::string& notification_id, |
- int action_index, |
- const base::NullableString16& reply); |
- |
- // Registers an implementation object to handle notification operations |
- // for |notification_type|. |
- void AddNotificationHandler(NotificationCommon::Type notification_type, |
- std::unique_ptr<NotificationHandler> handler); |
- |
- // Removes an implementation added via |AddNotificationHandler|. |
- void RemoveNotificationHandler(NotificationCommon::Type notification_type); |
- |
private: |
- NotificationHandler* GetNotificationHandler( |
- NotificationCommon::Type notification_type); |
- |
// Called by |notification_bridge_| when it is finished |
// initializing. |success| indicates it is ready to be used. |
void OnNotificationPlatformBridgeReady(bool success); |
@@ -82,9 +58,6 @@ class NativeNotificationDisplayService : public NotificationDisplayService { |
// for |notification_bridge_|. |
std::queue<base::OnceClosure> actions_; |
- std::map<NotificationCommon::Type, std::unique_ptr<NotificationHandler>> |
- notification_handlers_; |
- |
base::WeakPtrFactory<NativeNotificationDisplayService> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(NativeNotificationDisplayService); |