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

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

Issue 441753002: Route newly created notifications to notification provider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug fix Created 6 years, 4 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/message_center_notification_manager.h
diff --git a/chrome/browser/notifications/message_center_notification_manager.h b/chrome/browser/notifications/message_center_notification_manager.h
index e8400f935431a3e0ba77a9224d8d99a7ab95e9d1..e030fac28b0b0515c1aefc5273a277f7d6fb42ec 100644
--- a/chrome/browser/notifications/message_center_notification_manager.h
+++ b/chrome/browser/notifications/message_center_notification_manager.h
@@ -206,6 +206,16 @@ class MessageCenterNotificationManager
// notification is found.
ProfileNotification* FindProfileNotification(const std::string& id) const;
+ // Route Notifications to an app/extension, instead of sending to Chrome
+ // Notification Center.
+ void RouteNotificationToAlternateProvider(const Notification& notification,
+ Profile* profile,
+ std::string extension_id);
+
+ // Get the extension ID of the extension that the user chose to take over
+ // Chorme Notification Center.
+ std::string GetExtensionTakingOverNotifications(Profile* profile);
+
#if defined(OS_WIN)
// This function is run on update to ensure that the notification balloon is
// shown only when there are no popups present.

Powered by Google App Engine
This is Rietveld 408576698