OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/driver/glue/sync_backend_host_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 if (!frontend_) | 769 if (!frontend_) |
770 return; | 770 return; |
771 frontend_->OnDirectoryTypeUpdateCounterUpdated(type, counters); | 771 frontend_->OnDirectoryTypeUpdateCounterUpdated(type, counters); |
772 } | 772 } |
773 | 773 |
774 void SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop( | 774 void SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop( |
775 ModelType type, | 775 ModelType type, |
776 const StatusCounters& counters) { | 776 const StatusCounters& counters) { |
777 if (!frontend_) | 777 if (!frontend_) |
778 return; | 778 return; |
779 frontend_->OnDirectoryTypeStatusCounterUpdated(type, counters); | 779 frontend_->OnDatatypeStatusCounterUpdated(type, counters); |
780 } | 780 } |
781 | 781 |
782 void SyncBackendHostImpl::UpdateInvalidationVersions( | 782 void SyncBackendHostImpl::UpdateInvalidationVersions( |
783 const std::map<ModelType, int64_t>& invalidation_versions) { | 783 const std::map<ModelType, int64_t>& invalidation_versions) { |
784 sync_prefs_->UpdateInvalidationVersions(invalidation_versions); | 784 sync_prefs_->UpdateInvalidationVersions(invalidation_versions); |
785 } | 785 } |
786 | 786 |
787 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { | 787 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { |
788 return registrar_->sync_thread()->message_loop(); | 788 return registrar_->sync_thread()->message_loop(); |
789 } | 789 } |
(...skipping 26 matching lines...) Expand all Loading... |
816 const SyncManager::ClearServerDataCallback& frontend_callback) { | 816 const SyncManager::ClearServerDataCallback& frontend_callback) { |
817 DCHECK(ui_thread_->BelongsToCurrentThread()); | 817 DCHECK(ui_thread_->BelongsToCurrentThread()); |
818 frontend_callback.Run(); | 818 frontend_callback.Run(); |
819 } | 819 } |
820 | 820 |
821 } // namespace syncer | 821 } // namespace syncer |
822 | 822 |
823 #undef SDVLOG | 823 #undef SDVLOG |
824 | 824 |
825 #undef SLOG | 825 #undef SLOG |
OLD | NEW |