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

Unified Diff: content/public/browser/platform_notification_service.h

Issue 1127013008: Beginnings of synchronizing notifications in the notification database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/public/browser/platform_notification_service.h
diff --git a/content/public/browser/platform_notification_service.h b/content/public/browser/platform_notification_service.h
index afcc31921f340fdc322bcb9ea7c6092848f66591..d53d7333ffb5da266faa1974878d920b26781456 100644
--- a/content/public/browser/platform_notification_service.h
+++ b/content/public/browser/platform_notification_service.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
#include <stdint.h>
+#include <set>
#include <string>
#include "base/callback_forward.h"
@@ -72,6 +73,13 @@ class CONTENT_EXPORT PlatformNotificationService {
virtual void ClosePersistentNotification(
BrowserContext* browser_context,
int64_t persistent_notification_id) = 0;
+
+ // Writesthe ids of all currently displaying persistent notifications for the
johnme 2015/05/14 15:22:32 Writesthe
Peter Beverloo 2015/05/14 16:03:35 Oops. Done.
+ // given |browser_context| to |displayed_notifications|. Returns whether the
+ // platform is able to provide for such a set.
johnme 2015/05/14 15:22:32 no for
Peter Beverloo 2015/05/14 16:03:35 Done.
+ virtual bool GetDisplayedPersistentNotifications(
+ BrowserContext* browser_context,
+ std::set<std::string>* displayed_notifications) = 0;
johnme 2015/05/14 15:22:32 Surely this should be std::set<int64_t>? Or is thi
Peter Beverloo 2015/05/14 16:03:35 These should be strings, as is visible in my API p
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698