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

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

Issue 2917923004: Move handler processing to NotificationDisplayService
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..3e513963f1025b66135ae6788d2e0abb3345005f 100644
--- a/chrome/browser/notifications/notification_handler.h
+++ b/chrome/browser/notifications/notification_handler.h
@@ -15,11 +15,14 @@ class NullableString16;
class Profile;
// Interface that enables the different kind of notifications to process
-// operations coming from the user.
+// operations coming from the user or decisions made by the underlying
+// notification type.
class NotificationHandler {
public:
virtual ~NotificationHandler() {}
+ virtual void OnShow(Profile* profile, const std::string& notification_id) = 0;
+
// Process notification close events.
virtual void OnClose(Profile* profile,
const std::string& origin,

Powered by Google App Engine
This is Rietveld 408576698