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

Unified Diff: chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h

Issue 411463003: [Sync] Trigger refresh for synced notifications on context change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 6 years, 5 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 | chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h
diff --git a/chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h b/chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h
index 7e75718549b65f0f1d02f3b9b2a5866e05f2df77..9d225cea8b78c2b140c41b480dfbd95092b0d5e6 100644
--- a/chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h
+++ b/chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.h
@@ -23,7 +23,8 @@ class SyncedNotificationsShim : public syncer::SyncableService {
// Callback for firing extension events.
typedef base::Callback<void(scoped_ptr<extensions::Event>)> EventLauncher;
- explicit SyncedNotificationsShim(const EventLauncher& event_launcher);
+ explicit SyncedNotificationsShim(const EventLauncher& event_launcher,
+ const base::Closure& refresh_request);
virtual ~SyncedNotificationsShim();
// SyncableService interface.
@@ -58,6 +59,9 @@ class SyncedNotificationsShim : public syncer::SyncableService {
// Callback to trigger firing extension events.
EventLauncher event_launcher_;
+ // Callback to trigger synced notification refresh.
+ base::Closure refresh_request_;
+
// The sync change processors, initialized via MergeDataAndStartSyncing.
scoped_ptr<syncer::SyncChangeProcessor> notifications_change_processor_;
scoped_ptr<syncer::SyncChangeProcessor> app_info_change_processor_;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/synced_notifications_private/synced_notifications_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698