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

Side by Side Diff: components/sync/core/internal_components_factory_impl.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 // An InternalComponentsFactory implementation designed for real production / 5 // An InternalComponentsFactory implementation designed for real production /
6 // normal use. 6 // normal use.
7 7
8 #ifndef COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 8 #ifndef COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
9 #define COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 9 #define COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/sync/core/internal_components_factory.h" 15 #include "components/sync/core/internal_components_factory.h"
16 16
17 namespace syncer { 17 namespace syncer {
18 18
19 class InternalComponentsFactoryImpl : public InternalComponentsFactory { 19 class InternalComponentsFactoryImpl : public InternalComponentsFactory {
20 public: 20 public:
21 explicit InternalComponentsFactoryImpl(const Switches& switches); 21 explicit InternalComponentsFactoryImpl(const Switches& switches);
22 ~InternalComponentsFactoryImpl() override; 22 ~InternalComponentsFactoryImpl() override;
23 23
24 std::unique_ptr<SyncScheduler> BuildScheduler( 24 std::unique_ptr<SyncScheduler> BuildScheduler(
25 const std::string& name, 25 const std::string& name,
26 SyncCycleContext* context, 26 SyncCycleContext* context,
27 CancelationSignal* cancelation_signal) override; 27 syncer::CancelationSignal* cancelation_signal) override;
28 28
29 std::unique_ptr<SyncCycleContext> BuildContext( 29 std::unique_ptr<SyncCycleContext> BuildContext(
30 ServerConnectionManager* connection_manager, 30 ServerConnectionManager* connection_manager,
31 syncable::Directory* directory, 31 syncable::Directory* directory,
32 ExtensionsActivity* extensions_activity, 32 ExtensionsActivity* extensions_activity,
33 const std::vector<SyncEngineEventListener*>& listeners, 33 const std::vector<SyncEngineEventListener*>& listeners,
34 DebugInfoGetter* debug_info_getter, 34 DebugInfoGetter* debug_info_getter,
35 ModelTypeRegistry* model_type_registry, 35 ModelTypeRegistry* model_type_registry,
36 const std::string& invalidator_client_id) override; 36 const std::string& invalidator_client_id) override;
37 37
38 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore( 38 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore(
39 StorageOption storage, 39 StorageOption storage,
40 const std::string& dir_name, 40 const std::string& dir_name,
41 const base::FilePath& backing_filepath) override; 41 const base::FilePath& backing_filepath) override;
42 42
43 Switches GetSwitches() const override; 43 Switches GetSwitches() const override;
44 44
45 private: 45 private:
46 const Switches switches_; 46 const Switches switches_;
47 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); 47 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl);
48 }; 48 };
49 49
50 } // namespace syncer 50 } // namespace syncer
51 51
52 #endif // COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 52 #endif // COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/core/http_bridge_unittest.cc ('k') | components/sync/core/model_type_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698