diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-11 13:56:43 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-11 13:56:43 +0000 |
commit | 325c350df9c95200a5363a3a4ef9dea4af5d807e (patch) | |
tree | c3d45d16a034f61b83b1295c43c021298f564901 /sync/internal_api/sync_manager_impl.h | |
parent | 3d146b44d0be75328ac1873042141ba76778cfc0 (diff) | |
download | chromium_src-325c350df9c95200a5363a3a4ef9dea4af5d807e.zip chromium_src-325c350df9c95200a5363a3a4ef9dea4af5d807e.tar.gz chromium_src-325c350df9c95200a5363a3a4ef9dea4af5d807e.tar.bz2 |
Split up SyncEngineEventListener callbacks
Splits up the SyncEngineEventListener calls into one callback per event
type. This allow us to trim the 'event' objects so they only contain
elements relevant to their event.
Also removes some dead code related to STOP_SYNCING_PERMANENTLY, which
is no longer in use. It may have been used for birthday errors in the
past, but those are now handled with ActionableError. It was used for
CLEAR_USER_DATA, but that feature is no longer supported.
BUG=339984
Review URL: https://codereview.chromium.org/152013003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/sync_manager_impl.h')
-rw-r--r-- | sync/internal_api/sync_manager_impl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h index 4ed0b97..01488c1 100644 --- a/sync/internal_api/sync_manager_impl.h +++ b/sync/internal_api/sync_manager_impl.h @@ -12,7 +12,7 @@ #include "sync/base/sync_export.h" #include "sync/engine/all_status.h" #include "sync/engine/net/server_connection_manager.h" -#include "sync/engine/sync_engine_event.h" +#include "sync/engine/sync_engine_event_listener.h" #include "sync/engine/traffic_recorder.h" #include "sync/internal_api/change_reorder_buffer.h" #include "sync/internal_api/debug_info_event_listener.h" @@ -136,7 +136,10 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl : static int GetPreferencesNudgeDelay(); // SyncEngineEventListener implementation. - virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; + 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; // ServerConnectionEventListener implementation. virtual void OnServerConnectionEvent( |