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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 10826156: Plumb invalidations from Tango to the extensions code for the Push Messaging API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android build Created 8 years, 4 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 | « chrome/browser/sync/invalidation_frontend.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index b0fd1ba81060c10652f85d30bc38d9fe72ae2416..6c3bc91bb7ec7c922e0dedbe7a0f6ca776b042fc 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -25,6 +25,7 @@
#include "chrome/browser/sync/glue/data_type_manager.h"
#include "chrome/browser/sync/glue/data_type_manager_observer.h"
#include "chrome/browser/sync/glue/sync_backend_host.h"
+#include "chrome/browser/sync/invalidation_frontend.h"
#include "chrome/browser/sync/invalidations/invalidator_storage.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/sync_prefs.h"
@@ -153,7 +154,8 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
public browser_sync::DataTypeManagerObserver,
public syncer::UnrecoverableErrorHandler,
public content::NotificationObserver,
- public ProfileKeyedService {
+ public ProfileKeyedService,
+ public InvalidationFrontend {
public:
typedef ProfileSyncServiceObserver Observer;
typedef browser_sync::SyncBackendHost::Status Status;
@@ -594,22 +596,25 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
// and it must already be registered.
//
// Handler registrations are persisted across restarts of sync.
- void RegisterInvalidationHandler(syncer::SyncNotifierObserver* handler);
+ virtual void RegisterInvalidationHandler(
+ syncer::SyncNotifierObserver* handler) OVERRIDE;
// Updates the set of ObjectIds associated with |handler|. |handler| must
// not be NULL, and must already be registered. An ID must be registered for
// at most one handler.
//
// Registered IDs are persisted across restarts of sync.
- void UpdateRegisteredInvalidationIds(syncer::SyncNotifierObserver* handler,
- const syncer::ObjectIdSet& ids);
+ virtual void UpdateRegisteredInvalidationIds(
+ syncer::SyncNotifierObserver* handler,
+ const syncer::ObjectIdSet& ids) OVERRIDE;
// Stops sending notifications to |handler|. |handler| must not be NULL, and
// it must already be registered. Note that this doesn't unregister the IDs
// associated with |handler|.
//
// Handler registrations are persisted across restarts of sync.
- void UnregisterInvalidationHandler(syncer::SyncNotifierObserver* handler);
+ virtual void UnregisterInvalidationHandler(
+ syncer::SyncNotifierObserver* handler) OVERRIDE;
// ProfileKeyedService implementation.
virtual void Shutdown() OVERRIDE;
« no previous file with comments | « chrome/browser/sync/invalidation_frontend.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698