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

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

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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_display_service.h
diff --git a/chrome/browser/notifications/notification_display_service.h b/chrome/browser/notifications/notification_display_service.h
index 6bbd645747f3eecca310333ac705dab6008ad777..635c39848de8fdc404d99114096661c6ae381122 100644
--- a/chrome/browser/notifications/notification_display_service.h
+++ b/chrome/browser/notifications/notification_display_service.h
@@ -7,7 +7,9 @@
#include <set>
#include <string>
+
#include "base/macros.h"
+#include "chrome/browser/notifications/notification_common.h"
#include "components/keyed_service/core/keyed_service.h"
class Notification;
@@ -27,11 +29,13 @@ class NotificationDisplayService : public KeyedService {
~NotificationDisplayService() override {}
// Displays the |notification| identified by |notification_id|.
- virtual void Display(const std::string& notification_id,
+ virtual void Display(NotificationCommon::Type notification_type,
+ const std::string& notification_id,
const Notification& notification) = 0;
// Closes the notification identified by |notification_id|.
- virtual void Close(const std::string& notification_id) = 0;
+ virtual void Close(NotificationCommon::Type notification_type,
+ const std::string& notification_id) = 0;
// Returns whether the implementation can retrieve a list of currently visible
// notifications and stores them in |*notification_ids| when possible.
« no previous file with comments | « chrome/browser/notifications/notification_common.h ('k') | chrome/browser/notifications/notification_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698