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

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: changed AddToAlternateProvider 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..48bfe77316c82dde48d6f7d4a738715762eca7cb 100644
--- a/chrome/browser/notifications/message_center_notification_manager.h
+++ b/chrome/browser/notifications/message_center_notification_manager.h
@@ -181,6 +181,9 @@ class MessageCenterNotificationManager
// empty string otherwise.
std::string GetExtensionId();
+ // Route a new notification to an app/extension.
+ void AddToAlternateProvider(std::string extension_id);
+
private:
// Weak, guaranteed not to be used after profile removal by parent class.
Profile* profile_;
@@ -206,6 +209,10 @@ class MessageCenterNotificationManager
// notification is found.
ProfileNotification* FindProfileNotification(const std::string& id) const;
+ // 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