#include "base/compiler_specific.h"
#include "base/synchronization/lock.h"
-#include "sync/engine/sync_engine_event.h"
+#include "sync/engine/sync_engine_event_listener.h"
#include "sync/engine/syncer_types.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/engine/sync_status.h"
class ScopedStatusLock;
struct ServerConnectionEvent;
+struct SyncCycleEvent;
// This class collects data and uses it to update its internal state. It can
// return a snapshot of this state as a SyncerStatus object.
AllStatus();
virtual ~AllStatus();
- virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE;
+ // SyncEngineEventListener implementation.
+ virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE;
+ virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE;
+ virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE;
+ virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE;
+ virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE;
SyncStatus status() const;
protected:
// Examines syncer to calculate syncing and the unsynced count,
// and returns a Status with new values.
- SyncStatus CalcSyncing(const SyncEngineEvent& event) const;
+ SyncStatus CalcSyncing(const SyncCycleEvent& event) const;
SyncStatus CreateBlankStatus() const;
SyncStatus status_;