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 5cccdbf0a82650196b645f2410d6b3f16d0d5c01..0a42ae9953d0b4c67138de78d25a89d116139bcf 100644 |
--- a/chrome/browser/sync/profile_sync_service.h |
+++ b/chrome/browser/sync/profile_sync_service.h |
@@ -28,8 +28,6 @@ |
#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_base.h" |
#include "chrome/browser/sync/profile_sync_service_observer.h" |
#include "chrome/browser/sync/sync_prefs.h" |
@@ -63,7 +61,6 @@ namespace sessions { class SyncSessionSnapshot; } |
namespace syncer { |
class BaseTransaction; |
-class InvalidatorRegistrar; |
struct SyncCredentials; |
struct UserShare; |
} |
@@ -161,8 +158,7 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
public SigninGlobalError::AuthStatusProvider, |
public syncer::UnrecoverableErrorHandler, |
public content::NotificationObserver, |
- public ProfileKeyedService, |
- public InvalidationFrontend { |
+ public ProfileKeyedService { |
public: |
typedef browser_sync::SyncBackendHost::Status Status; |
@@ -276,12 +272,6 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
// Disables sync for user. Use ShowLoginDialog to enable. |
virtual void DisableForUser(); |
- // syncer::InvalidationHandler implementation (via SyncFrontend). |
- virtual void OnInvalidatorStateChange( |
- syncer::InvalidatorState state) OVERRIDE; |
- virtual void OnIncomingInvalidation( |
- const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
- |
// SyncFrontend implementation. |
virtual void OnBackendInitialized( |
const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
@@ -595,30 +585,10 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
// The set of currently enabled sync experiments. |
const syncer::Experiments& current_experiments() const; |
- // InvalidationFrontend implementation. It is an error to have |
- // registered handlers when Shutdown() is called. |
- virtual void RegisterInvalidationHandler( |
- syncer::InvalidationHandler* handler) OVERRIDE; |
- virtual void UpdateRegisteredInvalidationIds( |
- syncer::InvalidationHandler* handler, |
- const syncer::ObjectIdSet& ids) OVERRIDE; |
- virtual void UnregisterInvalidationHandler( |
- syncer::InvalidationHandler* handler) OVERRIDE; |
- virtual void AcknowledgeInvalidation( |
- const invalidation::ObjectId& id, |
- const syncer::AckHandle& ack_handle) OVERRIDE; |
- |
- virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
- |
// ProfileKeyedService implementation. This must be called exactly |
// once (before this object is destroyed). |
virtual void Shutdown() OVERRIDE; |
- // Simulate an incoming notification for the given id and payload. |
- void EmitInvalidationForTest( |
- const invalidation::ObjectId& id, |
- const std::string& payload); |
- |
protected: |
// Used by test classes that derive from ProfileSyncService. |
virtual browser_sync::SyncBackendHost* GetBackendForTest(); |
@@ -683,8 +653,6 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
ERROR_REASON_ACTIONABLE_ERROR, |
ERROR_REASON_LIMIT |
}; |
- typedef std::vector<std::pair<invalidation::ObjectId, |
- syncer::AckHandle> > AckHandleReplayQueue; |
friend class ProfileSyncServicePasswordTest; |
friend class SyncTest; |
friend class TestProfileSyncService; |
@@ -725,6 +693,7 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
void UpdateLastSyncedTime(); |
void NotifyObservers(); |
+ void NotifySyncCycleCompleted(); |
void ClearStaleErrors(); |
@@ -781,11 +750,6 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
bool delete_sync_database, |
UnrecoverableErrorReason reason); |
- // Must be called every time |backend_initialized_| or |
- // |invalidator_state_| is changed (but only if |
- // |invalidator_registrar_| is not NULL). |
- void UpdateInvalidatorRegistrarState(); |
- |
// Destroys / recreates an instance of ProfileSyncService. Used exclusively by |
// the sync integration tests so they can restart sync from scratch without |
// tearing down and recreating the browser process. Needed because simply |
@@ -803,9 +767,6 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
// preferences. |
browser_sync::SyncPrefs sync_prefs_; |
- // TODO(tim): Move this to InvalidationService, once it exists. Bug 124137. |
- browser_sync::InvalidatorStorage invalidator_storage_; |
- |
// TODO(ncarter): Put this in a profile, once there is UI for it. |
// This specifies where to find the sync server. |
GURL sync_service_url_; |
@@ -914,18 +875,6 @@ class ProfileSyncService : public ProfileSyncServiceBase, |
// Factory the backend will use to build the SyncManager. |
syncer::SyncManagerFactory sync_manager_factory_; |
- // Holds the current invalidator state as updated by |
- // OnInvalidatorStateChange(). Note that this is different from the |
- // state known by |invalidator_registrar_| (See |
- // UpdateInvalidatorState()). |
- syncer::InvalidatorState invalidator_state_; |
- |
- // Dispatches invalidations to handlers. Set in Initialize() and |
- // unset in Shutdown(). |
- scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_; |
- // Queues any acknowledgements received while the backend is uninitialized. |
- AckHandleReplayQueue ack_replay_queue_; |
- |
// Sync's internal debug info listener. Used to record datatype configuration |
// and association information. |
syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |