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

Unified Diff: sync/engine/all_status.h

Issue 152013003: Split up SyncEngineEventListener callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 6 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
« no previous file with comments | « no previous file | sync/engine/all_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/all_status.h
diff --git a/sync/engine/all_status.h b/sync/engine/all_status.h
index 8954eaeb99a7d8eaff4341f79cd56503383cac40..06a1b051e2161e869b331cc1b0dfb0f3fc3e8696 100644
--- a/sync/engine/all_status.h
+++ b/sync/engine/all_status.h
@@ -13,7 +13,8 @@
#include "base/compiler_specific.h"
#include "base/synchronization/lock.h"
-#include "sync/engine/sync_engine_event.h"
+#include "sync/engine/sync_cycle_event.h"
Nicolas Zea 2014/02/11 00:35:05 forward declare
rlarocque 2014/02/11 00:48:28 Done.
+#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"
@@ -39,7 +40,11 @@ class AllStatus : public SyncEngineEventListener {
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;
SyncStatus status() const;
@@ -64,7 +69,7 @@ class AllStatus : public SyncEngineEventListener {
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_;
« no previous file with comments | « no previous file | sync/engine/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698