| 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 <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 } | 512 } |
| 513 | 513 |
| 514 void SyncBackendHostImpl::DisableDirectoryTypeDebugInfoForwarding() { | 514 void SyncBackendHostImpl::DisableDirectoryTypeDebugInfoForwarding() { |
| 515 DCHECK(initialized()); | 515 DCHECK(initialized()); |
| 516 registrar_->sync_thread()->task_runner()->PostTask( | 516 registrar_->sync_thread()->task_runner()->PostTask( |
| 517 FROM_HERE, | 517 FROM_HERE, |
| 518 base::Bind(&SyncBackendHostCore::DisableDirectoryTypeDebugInfoForwarding, | 518 base::Bind(&SyncBackendHostCore::DisableDirectoryTypeDebugInfoForwarding, |
| 519 core_)); | 519 core_)); |
| 520 } | 520 } |
| 521 | 521 |
| 522 void SyncBackendHostImpl::GetAllNodesForTypes( | |
| 523 syncer::ModelTypeSet types, | |
| 524 base::Callback<void(const std::vector<syncer::ModelType>&, | |
| 525 ScopedVector<base::ListValue>)> callback) { | |
| 526 DCHECK(initialized()); | |
| 527 registrar_->sync_thread()->task_runner()->PostTask( | |
| 528 FROM_HERE, base::Bind(&SyncBackendHostCore::GetAllNodesForTypes, core_, | |
| 529 types, frontend_task_runner_, callback)); | |
| 530 } | |
| 531 | |
| 532 void SyncBackendHostImpl::InitCore( | 522 void SyncBackendHostImpl::InitCore( |
| 533 std::unique_ptr<DoInitializeOptions> options) { | 523 std::unique_ptr<DoInitializeOptions> options) { |
| 534 registrar_->sync_thread()->task_runner()->PostTask( | 524 registrar_->sync_thread()->task_runner()->PostTask( |
| 535 FROM_HERE, base::Bind(&SyncBackendHostCore::DoInitialize, core_.get(), | 525 FROM_HERE, base::Bind(&SyncBackendHostCore::DoInitialize, core_.get(), |
| 536 base::Passed(&options))); | 526 base::Passed(&options))); |
| 537 } | 527 } |
| 538 | 528 |
| 539 void SyncBackendHostImpl::RequestConfigureSyncer( | 529 void SyncBackendHostImpl::RequestConfigureSyncer( |
| 540 syncer::ConfigureReason reason, | 530 syncer::ConfigureReason reason, |
| 541 syncer::ModelTypeSet to_download, | 531 syncer::ModelTypeSet to_download, |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { | 839 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { |
| 850 DCHECK(ui_thread_->BelongsToCurrentThread()); | 840 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 851 frontend_callback.Run(); | 841 frontend_callback.Run(); |
| 852 } | 842 } |
| 853 | 843 |
| 854 } // namespace browser_sync | 844 } // namespace browser_sync |
| 855 | 845 |
| 856 #undef SDVLOG | 846 #undef SDVLOG |
| 857 | 847 |
| 858 #undef SLOG | 848 #undef SLOG |
| OLD | NEW |