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

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

Issue 2916383004: Revert of Minimize the delegate dependencies for non persistent notifications. (Closed)
Patch Set: Created 3 years, 7 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_handler.h
diff --git a/chrome/browser/notifications/notification_handler.h b/chrome/browser/notifications/notification_handler.h
index e30f7aec97afd773aeefe14db192f262f9adcfb2..851e76bfebe4b19dddb0dde7dfd490c67758b203 100644
--- a/chrome/browser/notifications/notification_handler.h
+++ b/chrome/browser/notifications/notification_handler.h
@@ -12,6 +12,7 @@
class NullableString16;
}
+class NotificationDelegate;
class Profile;
// Interface that enables the different kind of notifications to process
@@ -36,6 +37,10 @@
// Open notification settings.
virtual void OpenSettings(Profile* profile) = 0;
+
+ // Registers a |delegate| object with this handler.
+ virtual void RegisterNotification(const std::string& notification_id,
+ NotificationDelegate* delegate) = 0;
};
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698