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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_core.cc

Issue 2395533003: [Sync] Move some things from driver to base. (Closed)
Patch Set: Rebase. Created 4 years, 2 months 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 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_core.h" 5 #include "components/sync/driver/glue/sync_backend_host_core.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "components/data_use_measurement/core/data_use_user_data.h" 14 #include "components/data_use_measurement/core/data_use_user_data.h"
15 #include "components/invalidation/public/invalidation_util.h" 15 #include "components/invalidation/public/invalidation_util.h"
16 #include "components/invalidation/public/object_id_invalidation_map.h" 16 #include "components/invalidation/public/object_id_invalidation_map.h"
17 #include "components/sync/base/invalidation_adapter.h"
17 #include "components/sync/core/http_post_provider_factory.h" 18 #include "components/sync/core/http_post_provider_factory.h"
18 #include "components/sync/core/internal_components_factory.h" 19 #include "components/sync/core/internal_components_factory.h"
19 #include "components/sync/core/sync_manager.h" 20 #include "components/sync/core/sync_manager.h"
20 #include "components/sync/core/sync_manager_factory.h" 21 #include "components/sync/core/sync_manager_factory.h"
21 #include "components/sync/device_info/local_device_info_provider_impl.h" 22 #include "components/sync/device_info/local_device_info_provider_impl.h"
22 #include "components/sync/driver/glue/sync_backend_registrar.h" 23 #include "components/sync/driver/glue/sync_backend_registrar.h"
23 #include "components/sync/driver/invalidation_adapter.h"
24 #include "components/sync/engine/cycle/commit_counters.h" 24 #include "components/sync/engine/cycle/commit_counters.h"
25 #include "components/sync/engine/cycle/status_counters.h" 25 #include "components/sync/engine/cycle/status_counters.h"
26 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" 26 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
27 #include "components/sync/engine/cycle/update_counters.h" 27 #include "components/sync/engine/cycle/update_counters.h"
28 #include "components/sync/engine/events/protocol_event.h" 28 #include "components/sync/engine/events/protocol_event.h"
29 29
30 // Helper macros to log with the syncer thread name; useful when there 30 // Helper macros to log with the syncer thread name; useful when there
31 // are multiple syncers involved. 31 // are multiple syncers involved.
32 32
33 #define SLOG(severity) LOG(severity) << name_ << ": " 33 #define SLOG(severity) LOG(severity) << name_ << ": "
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 } 684 }
685 685
686 void SyncBackendHostCore::ClearServerDataDone( 686 void SyncBackendHostCore::ClearServerDataDone(
687 const base::Closure& frontend_callback) { 687 const base::Closure& frontend_callback) {
688 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); 688 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread());
689 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 689 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
690 frontend_callback); 690 frontend_callback);
691 } 691 }
692 692
693 } // namespace syncer 693 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.h ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698