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

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

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "components/sync/engine_impl/sync_manager_impl.h" 5 #include "components/sync/engine_impl/sync_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 void SyncManagerImpl::OnActionableError(const SyncProtocolError& error) { 848 void SyncManagerImpl::OnActionableError(const SyncProtocolError& error) {
849 for (auto& observer : observers_) { 849 for (auto& observer : observers_) {
850 observer.OnActionableError(error); 850 observer.OnActionableError(error);
851 } 851 }
852 } 852 }
853 853
854 void SyncManagerImpl::OnRetryTimeChanged(base::Time) {} 854 void SyncManagerImpl::OnRetryTimeChanged(base::Time) {}
855 855
856 void SyncManagerImpl::OnThrottledTypesChanged(ModelTypeSet) {} 856 void SyncManagerImpl::OnThrottledTypesChanged(ModelTypeSet) {}
857 857
858 void SyncManagerImpl::OnBackedOffTypesChanged(ModelTypeSet) {}
859
858 void SyncManagerImpl::OnMigrationRequested(ModelTypeSet types) { 860 void SyncManagerImpl::OnMigrationRequested(ModelTypeSet types) {
859 for (auto& observer : observers_) { 861 for (auto& observer : observers_) {
860 observer.OnMigrationRequested(types); 862 observer.OnMigrationRequested(types);
861 } 863 }
862 } 864 }
863 865
864 void SyncManagerImpl::OnProtocolEvent(const ProtocolEvent& event) { 866 void SyncManagerImpl::OnProtocolEvent(const ProtocolEvent& event) {
865 protocol_event_buffer_.RecordProtocolEvent(event); 867 protocol_event_buffer_.RecordProtocolEvent(event);
866 for (auto& observer : observers_) { 868 for (auto& observer : observers_) {
867 observer.OnProtocolEvent(event); 869 observer.OnProtocolEvent(event);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } 1014 }
1013 1015
1014 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, 1016 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch,
1015 bool empty_jar) { 1017 bool empty_jar) {
1016 DCHECK(thread_checker_.CalledOnValidThread()); 1018 DCHECK(thread_checker_.CalledOnValidThread());
1017 cycle_context_->set_cookie_jar_mismatch(account_mismatch); 1019 cycle_context_->set_cookie_jar_mismatch(account_mismatch);
1018 cycle_context_->set_cookie_jar_empty(empty_jar); 1020 cycle_context_->set_cookie_jar_empty(empty_jar);
1019 } 1021 }
1020 1022
1021 } // namespace syncer 1023 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl.h ('k') | components/sync/engine_impl/sync_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698