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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_core.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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"
17 #include "components/sync/core/internal_components_factory.h"
18 #include "components/sync/core/sync_manager.h"
19 #include "components/sync/core/sync_manager_factory.h"
20 #include "components/sync/engine/events/protocol_event.h"
21 #include "components/sync/sessions/commit_counters.h"
22 #include "components/sync/sessions/status_counters.h"
23 #include "components/sync/sessions/sync_session_snapshot.h"
24 #include "components/sync/sessions/update_counters.h"
16 #include "components/sync_driver/glue/sync_backend_registrar.h" 25 #include "components/sync_driver/glue/sync_backend_registrar.h"
17 #include "components/sync_driver/invalidation_adapter.h" 26 #include "components/sync_driver/invalidation_adapter.h"
18 #include "components/sync_driver/local_device_info_provider_impl.h" 27 #include "components/sync_driver/local_device_info_provider_impl.h"
19 #include "sync/internal_api/public/events/protocol_event.h"
20 #include "sync/internal_api/public/http_post_provider_factory.h"
21 #include "sync/internal_api/public/internal_components_factory.h"
22 #include "sync/internal_api/public/sessions/commit_counters.h"
23 #include "sync/internal_api/public/sessions/status_counters.h"
24 #include "sync/internal_api/public/sessions/sync_session_snapshot.h"
25 #include "sync/internal_api/public/sessions/update_counters.h"
26 #include "sync/internal_api/public/sync_manager.h"
27 #include "sync/internal_api/public/sync_manager_factory.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
33 #define SLOG(severity) LOG(severity) << name_ << ": " 33 #define SLOG(severity) LOG(severity) << name_ << ": "
34 34
35 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " 35 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": "
36 36
37 static const int kSaveChangesIntervalSeconds = 10; 37 static const int kSaveChangesIntervalSeconds = 10;
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 762
763 void SyncBackendHostCore::ClearServerDataDone( 763 void SyncBackendHostCore::ClearServerDataDone(
764 const base::Closure& frontend_callback) { 764 const base::Closure& frontend_callback) {
765 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); 765 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread());
766 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 766 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
767 frontend_callback); 767 frontend_callback);
768 } 768 }
769 769
770 770
771 } // namespace browser_sync 771 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_core.h ('k') | components/sync_driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698