| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 if (!frontend_) | 789 if (!frontend_) |
| 790 return; | 790 return; |
| 791 frontend_->OnDirectoryTypeUpdateCounterUpdated(type, counters); | 791 frontend_->OnDirectoryTypeUpdateCounterUpdated(type, counters); |
| 792 } | 792 } |
| 793 | 793 |
| 794 void SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop( | 794 void SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop( |
| 795 syncer::ModelType type, | 795 syncer::ModelType type, |
| 796 const syncer::StatusCounters& counters) { | 796 const syncer::StatusCounters& counters) { |
| 797 if (!frontend_) | 797 if (!frontend_) |
| 798 return; | 798 return; |
| 799 frontend_->OnDirectoryTypeStatusCounterUpdated(type, counters); | 799 frontend_->OnDatatypeStatusCounterUpdated(type, counters); |
| 800 } | 800 } |
| 801 | 801 |
| 802 void SyncBackendHostImpl::UpdateInvalidationVersions( | 802 void SyncBackendHostImpl::UpdateInvalidationVersions( |
| 803 const std::map<syncer::ModelType, int64_t>& invalidation_versions) { | 803 const std::map<syncer::ModelType, int64_t>& invalidation_versions) { |
| 804 sync_prefs_->UpdateInvalidationVersions(invalidation_versions); | 804 sync_prefs_->UpdateInvalidationVersions(invalidation_versions); |
| 805 } | 805 } |
| 806 | 806 |
| 807 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { | 807 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { |
| 808 return registrar_->sync_thread()->message_loop(); | 808 return registrar_->sync_thread()->message_loop(); |
| 809 } | 809 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 836 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { | 836 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { |
| 837 DCHECK(ui_thread_->BelongsToCurrentThread()); | 837 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 838 frontend_callback.Run(); | 838 frontend_callback.Run(); |
| 839 } | 839 } |
| 840 | 840 |
| 841 } // namespace browser_sync | 841 } // namespace browser_sync |
| 842 | 842 |
| 843 #undef SDVLOG | 843 #undef SDVLOG |
| 844 | 844 |
| 845 #undef SLOG | 845 #undef SLOG |
| OLD | NEW |