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

Side by Side Diff: components/sync/engine/engine_components_factory_impl.h

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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 EngineComponentsFactory 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_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_
9 #define COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 9 #define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "components/sync/core/internal_components_factory.h" 16 #include "components/sync/engine/engine_components_factory.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 class InternalComponentsFactoryImpl : public InternalComponentsFactory { 20 class EngineComponentsFactoryImpl : public EngineComponentsFactory {
21 public: 21 public:
22 explicit InternalComponentsFactoryImpl(const Switches& switches); 22 explicit EngineComponentsFactoryImpl(const Switches& switches);
23 ~InternalComponentsFactoryImpl() override; 23 ~EngineComponentsFactoryImpl() override;
24 24
25 std::unique_ptr<SyncScheduler> BuildScheduler( 25 std::unique_ptr<SyncScheduler> BuildScheduler(
26 const std::string& name, 26 const std::string& name,
27 SyncCycleContext* context, 27 SyncCycleContext* context,
28 CancelationSignal* cancelation_signal) override; 28 CancelationSignal* cancelation_signal) override;
29 29
30 std::unique_ptr<SyncCycleContext> BuildContext( 30 std::unique_ptr<SyncCycleContext> BuildContext(
31 ServerConnectionManager* connection_manager, 31 ServerConnectionManager* connection_manager,
32 syncable::Directory* directory, 32 syncable::Directory* directory,
33 ExtensionsActivity* extensions_activity, 33 ExtensionsActivity* extensions_activity,
34 const std::vector<SyncEngineEventListener*>& listeners, 34 const std::vector<SyncEngineEventListener*>& listeners,
35 DebugInfoGetter* debug_info_getter, 35 DebugInfoGetter* debug_info_getter,
36 ModelTypeRegistry* model_type_registry, 36 ModelTypeRegistry* model_type_registry,
37 const std::string& invalidator_client_id) override; 37 const std::string& invalidator_client_id) override;
38 38
39 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore( 39 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore(
40 StorageOption storage, 40 StorageOption storage,
41 const std::string& dir_name, 41 const std::string& dir_name,
42 const base::FilePath& backing_filepath) override; 42 const base::FilePath& backing_filepath) override;
43 43
44 Switches GetSwitches() const override; 44 Switches GetSwitches() const override;
45 45
46 private: 46 private:
47 const Switches switches_; 47 const Switches switches_;
48 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); 48 DISALLOW_COPY_AND_ASSIGN(EngineComponentsFactoryImpl);
49 }; 49 };
50 50
51 } // namespace syncer 51 } // namespace syncer
52 52
53 #endif // COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 53 #endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine/engine_components_factory.h ('k') | components/sync/engine/engine_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698