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

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

Issue 2250033002: [Sync] Create //components/sync/device_info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint on device info files. Created 4 years, 4 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/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "components/data_use_measurement/core/data_use_user_data.h" 13 #include "components/data_use_measurement/core/data_use_user_data.h"
14 #include "components/invalidation/public/invalidation_util.h" 14 #include "components/invalidation/public/invalidation_util.h"
15 #include "components/invalidation/public/object_id_invalidation_map.h" 15 #include "components/invalidation/public/object_id_invalidation_map.h"
16 #include "components/sync/core/http_post_provider_factory.h" 16 #include "components/sync/core/http_post_provider_factory.h"
17 #include "components/sync/core/internal_components_factory.h" 17 #include "components/sync/core/internal_components_factory.h"
18 #include "components/sync/core/sync_manager.h" 18 #include "components/sync/core/sync_manager.h"
19 #include "components/sync/core/sync_manager_factory.h" 19 #include "components/sync/core/sync_manager_factory.h"
20 #include "components/sync/device_info/local_device_info_provider_impl.h"
20 #include "components/sync/driver/glue/sync_backend_registrar.h" 21 #include "components/sync/driver/glue/sync_backend_registrar.h"
21 #include "components/sync/driver/invalidation_adapter.h" 22 #include "components/sync/driver/invalidation_adapter.h"
22 #include "components/sync/driver/local_device_info_provider_impl.h"
23 #include "components/sync/engine/events/protocol_event.h" 23 #include "components/sync/engine/events/protocol_event.h"
24 #include "components/sync/sessions/commit_counters.h" 24 #include "components/sync/sessions/commit_counters.h"
25 #include "components/sync/sessions/status_counters.h" 25 #include "components/sync/sessions/status_counters.h"
26 #include "components/sync/sessions/sync_session_snapshot.h" 26 #include "components/sync/sessions/sync_session_snapshot.h"
27 #include "components/sync/sessions/update_counters.h" 27 #include "components/sync/sessions/update_counters.h"
28 #include "url/gurl.h" 28 #include "url/gurl.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
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 } 723 }
724 724
725 void SyncBackendHostCore::ClearServerDataDone( 725 void SyncBackendHostCore::ClearServerDataDone(
726 const base::Closure& frontend_callback) { 726 const base::Closure& frontend_callback) {
727 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); 727 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread());
728 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 728 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
729 frontend_callback); 729 frontend_callback);
730 } 730 }
731 731
732 } // namespace browser_sync 732 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698