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

Side by Side Diff: components/sync/engine_impl/sync_manager_impl.h

Issue 2475043002: [Sync] Sync client should to exponential backoff when receive partial failure (Closed)
Patch Set: rebase Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void OnPassphraseTypeChanged(PassphraseType type, 124 void OnPassphraseTypeChanged(PassphraseType type,
125 base::Time explicit_passphrase_time) override; 125 base::Time explicit_passphrase_time) override;
126 void OnLocalSetPassphraseEncryption( 126 void OnLocalSetPassphraseEncryption(
127 const SyncEncryptionHandler::NigoriState& nigori_state) override; 127 const SyncEncryptionHandler::NigoriState& nigori_state) override;
128 128
129 // SyncEngineEventListener implementation. 129 // SyncEngineEventListener implementation.
130 void OnSyncCycleEvent(const SyncCycleEvent& event) override; 130 void OnSyncCycleEvent(const SyncCycleEvent& event) override;
131 void OnActionableError(const SyncProtocolError& error) override; 131 void OnActionableError(const SyncProtocolError& error) override;
132 void OnRetryTimeChanged(base::Time retry_time) override; 132 void OnRetryTimeChanged(base::Time retry_time) override;
133 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override; 133 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override;
134 void OnBackedOffTypesChanged(ModelTypeSet backed_off_types) override;
134 void OnMigrationRequested(ModelTypeSet types) override; 135 void OnMigrationRequested(ModelTypeSet types) override;
135 void OnProtocolEvent(const ProtocolEvent& event) override; 136 void OnProtocolEvent(const ProtocolEvent& event) override;
136 137
137 // ServerConnectionEventListener implementation. 138 // ServerConnectionEventListener implementation.
138 void OnServerConnectionEvent(const ServerConnectionEvent& event) override; 139 void OnServerConnectionEvent(const ServerConnectionEvent& event) override;
139 140
140 // JsBackend implementation. 141 // JsBackend implementation.
141 void SetJsEventHandler( 142 void SetJsEventHandler(
142 const WeakHandle<JsEventHandler>& event_handler) override; 143 const WeakHandle<JsEventHandler>& event_handler) override;
143 144
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 334 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
334 335
335 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 336 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
336 337
337 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 338 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
338 }; 339 };
339 340
340 } // namespace syncer 341 } // namespace syncer
341 342
342 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 343 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_engine_event_listener.h ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698