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

Unified Diff: content/browser/notifications/notification_message_filter.h

Issue 1057573002: Implement the ability to get all notifications in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: Created 5 years, 9 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/browser/notifications/notification_message_filter.h
diff --git a/content/browser/notifications/notification_message_filter.h b/content/browser/notifications/notification_message_filter.h
index 8f400a681fb1601108dd52267d507e720e246a70..7dcbcbddc702d477df8cb22653ef5f093c4f7b32 100644
--- a/content/browser/notifications/notification_message_filter.h
+++ b/content/browser/notifications/notification_message_filter.h
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_message_filter.h"
+#include "content/public/browser/notification_database_data.h"
#include "third_party/WebKit/public/platform/modules/notifications/WebNotificationPermission.h"
class GURL;
@@ -81,6 +82,16 @@ class CONTENT_EXPORT NotificationMessageFilter : public BrowserMessageFilter {
bool success,
int64_t notification_id);
+ // Callback to be invoked when all notifications belonging to a Service Worker
+ // registration have been read from the database. The |success| argument
+ // indicates whether the data could be read successfully, whereas the actual
+ // notifications will be stored in |notifications|.
+ void DidGetNotifications(
+ int request_id,
+ const std::string& filter_tag,
+ bool success,
+ const std::vector<NotificationDatabaseData>& notifications);
+
// Callback to be invoked when the data associated with a persistent
// notification has been removed by the database, unless an error occurred,
// which will be indicated by |success|.

Powered by Google App Engine
This is Rietveld 408576698