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

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

Issue 2148293004: [Sync] //components/sync external changes [DO NOT SUBMIT] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sc-1
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_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
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/feature_list.h" 12 #include "base/feature_list.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "components/invalidation/public/invalidation_service.h" 16 #include "components/invalidation/public/invalidation_service.h"
17 #include "components/invalidation/public/object_id_invalidation_map.h" 17 #include "components/invalidation/public/object_id_invalidation_map.h"
18 #include "components/signin/core/browser/signin_client.h" 18 #include "components/signin/core/browser/signin_client.h"
19 #include "components/sync/base/experiments.h"
20 #include "components/sync/base/sync_string_conversions.h"
21 #include "components/sync/core/activation_context.h"
22 #include "components/sync/core/base_transaction.h"
23 #include "components/sync/core/http_bridge.h"
24 #include "components/sync/core/internal_components_factory.h"
25 #include "components/sync/core/internal_components_factory_impl.h"
26 #include "components/sync/core/sync_manager.h"
27 #include "components/sync/core/sync_manager_factory.h"
28 #include "components/sync/engine/events/protocol_event.h"
19 #include "components/sync_driver/glue/sync_backend_host_core.h" 29 #include "components/sync_driver/glue/sync_backend_host_core.h"
20 #include "components/sync_driver/glue/sync_backend_registrar.h" 30 #include "components/sync_driver/glue/sync_backend_registrar.h"
21 #include "components/sync_driver/invalidation_helper.h" 31 #include "components/sync_driver/invalidation_helper.h"
22 #include "components/sync_driver/sync_client.h" 32 #include "components/sync_driver/sync_client.h"
23 #include "components/sync_driver/sync_driver_switches.h" 33 #include "components/sync_driver/sync_driver_switches.h"
24 #include "components/sync_driver/sync_frontend.h" 34 #include "components/sync_driver/sync_frontend.h"
25 #include "components/sync_driver/sync_prefs.h" 35 #include "components/sync_driver/sync_prefs.h"
26 #include "sync/internal_api/public/activation_context.h"
27 #include "sync/internal_api/public/base_transaction.h"
28 #include "sync/internal_api/public/events/protocol_event.h"
29 #include "sync/internal_api/public/http_bridge.h"
30 #include "sync/internal_api/public/internal_components_factory.h"
31 #include "sync/internal_api/public/internal_components_factory_impl.h"
32 #include "sync/internal_api/public/sync_manager.h"
33 #include "sync/internal_api/public/sync_manager_factory.h"
34 #include "sync/internal_api/public/util/experiments.h"
35 #include "sync/internal_api/public/util/sync_string_conversions.h"
36 36
37 // Helper macros to log with the syncer thread name; useful when there 37 // Helper macros to log with the syncer thread name; useful when there
38 // are multiple syncers involved. 38 // are multiple syncers involved.
39 39
40 #define SLOG(severity) LOG(severity) << name_ << ": " 40 #define SLOG(severity) LOG(severity) << name_ << ": "
41 41
42 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " 42 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": "
43 43
44 using syncer::InternalComponentsFactory; 44 using syncer::InternalComponentsFactory;
45 45
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 864 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
865 DCHECK(ui_thread_->BelongsToCurrentThread()); 865 DCHECK(ui_thread_->BelongsToCurrentThread());
866 frontend_callback.Run(); 866 frontend_callback.Run();
867 } 867 }
868 868
869 } // namespace browser_sync 869 } // namespace browser_sync
870 870
871 #undef SDVLOG 871 #undef SDVLOG
872 872
873 #undef SLOG 873 #undef SLOG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698