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

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, 8 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
« no previous file with comments | « no previous file | content/browser/notifications/notification_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5eaed3cfe52c6e07ddcbcb110957a81779803136..c5ad0a4ac696afa0c7836f2b730a09a08b66796c 100644
--- a/content/browser/notifications/notification_message_filter.h
+++ b/content/browser/notifications/notification_message_filter.h
@@ -10,6 +10,7 @@
#include "base/callback_forward.h"
#include "base/memory/weak_ptr.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 NotificationMessageFilter : public BrowserMessageFilter {
bool success,
int64_t persistent_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|.
« no previous file with comments | « no previous file | content/browser/notifications/notification_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698