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

Unified Diff: content/browser/notifications/platform_notification_context_impl.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
Index: content/browser/notifications/platform_notification_context_impl.h
diff --git a/content/browser/notifications/platform_notification_context_impl.h b/content/browser/notifications/platform_notification_context_impl.h
index 757d22e42b130377f72f5d10461b59cca4072186..e208324774b82d65da0be59cc4297ef82859a774 100644
--- a/content/browser/notifications/platform_notification_context_impl.h
+++ b/content/browser/notifications/platform_notification_context_impl.h
@@ -62,6 +62,10 @@ class CONTENT_EXPORT PlatformNotificationContextImpl
void DeleteNotificationData(int64_t notification_id,
const GURL& origin,
const DeleteResultCallback& callback) override;
+ void ReadAllNotificationDataForServiceWorkerRegistration(
+ const GURL& origin,
+ int64_t service_worker_registration_id,
+ const ReadAllResultCallback& callback) override;
// ServiceWorkerContextObserver implementation.
void OnRegistrationDeleted(int64_t registration_id,
@@ -100,6 +104,14 @@ class CONTENT_EXPORT PlatformNotificationContextImpl
const GURL& origin,
const ReadResultCallback& callback);
+ // Actually reads all notification data from the database. Must only be
+ // called on the |task_runner_| thread. |callback| will be invoked on the
+ // IO thread when the operation has completed.
+ void DoReadAllNotificationDataForServiceWorkerRegistration(
+ const GURL& origin,
+ int64_t service_worker_registration_id,
+ const ReadAllResultCallback& callback);
+
// Actually writes the notification database to the database. Must only be
// called on the |task_runner_| thread. |callback| will be invoked on the
// IO thread when the operation has completed.

Powered by Google App Engine
This is Rietveld 408576698