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

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

Issue 2714743002: Retrive displayed notifications asynchronously
Patch Set: apply review comments from https://codereview.chromium.org/2709213005/ Created 3 years, 10 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/notification_platform_bridge.h
diff --git a/chrome/browser/notifications/notification_platform_bridge.h b/chrome/browser/notifications/notification_platform_bridge.h
index 720245c8c8eb12465b5ab9d6d5ed949b4daa636f..0724c2858b3a0f573d7c1bc7401e37279b375e68 100644
--- a/chrome/browser/notifications/notification_platform_bridge.h
+++ b/chrome/browser/notifications/notification_platform_bridge.h
@@ -44,6 +44,13 @@ class NotificationPlatformBridge {
bool incognito,
std::set<std::string>* notification_ids) const = 0;
+ // Asynchronous version of |GetDisplayed|
+ // TODO(miguelg): remove the sync version once all paths have been updated.
+ virtual void GetDisplayedAsync(
+ const std::string& profile_id,
+ bool incognito,
+ const NotificationCommon::NotificationResultCallback& callback) const = 0;
+
protected:
NotificationPlatformBridge() {}

Powered by Google App Engine
This is Rietveld 408576698