| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |