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

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

Issue 1071773003: Remove persistent notifications from the database when they close. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: rebase 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: chrome/browser/notifications/platform_notification_service_impl.h
diff --git a/chrome/browser/notifications/platform_notification_service_impl.h b/chrome/browser/notifications/platform_notification_service_impl.h
index e0ad4512dfd9494156d585617e346e9b01fd4ca7..bfbad2d4a189280f328afe075e3c222694943021 100644
--- a/chrome/browser/notifications/platform_notification_service_impl.h
+++ b/chrome/browser/notifications/platform_notification_service_impl.h
@@ -40,6 +40,15 @@ class PlatformNotificationServiceImpl
int64_t persistent_notification_id,
const GURL& origin) const;
+ // To be called when a persistent notification has been closed. The data
+ // associated with the notification has to be pruned from the database in this
+ // case, to make sure that it continues to be in sync. Must be called on the
+ // UI thread.
+ void OnPersistentNotificationClose(
+ content::BrowserContext* browser_context,
+ int64_t persistent_notification_id,
+ const GURL& origin) const;
+
// Returns the Notification UI Manager through which notifications can be
// displayed to the user. Can be overridden for testing.
NotificationUIManager* GetNotificationUIManager() const;

Powered by Google App Engine
This is Rietveld 408576698