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

Side by Side Diff: sync/internal_api/public/internal_components_factory_impl.h

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
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // An InternalComponentsFactory implementation designed for real production /
6 // normal use.
7
8 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
10
11 #include <string>
12 #include <vector>
13
14 #include "base/macros.h"
15 #include "sync/base/sync_export.h"
16 #include "sync/internal_api/public/internal_components_factory.h"
17
18 namespace syncer {
19
20 class SYNC_EXPORT InternalComponentsFactoryImpl
21 : public InternalComponentsFactory {
22 public:
23 explicit InternalComponentsFactoryImpl(const Switches& switches);
24 ~InternalComponentsFactoryImpl() override;
25
26 std::unique_ptr<SyncScheduler> BuildScheduler(
27 const std::string& name,
28 sessions::SyncSessionContext* context,
29 syncer::CancelationSignal* cancelation_signal) override;
30
31 std::unique_ptr<sessions::SyncSessionContext> BuildContext(
32 ServerConnectionManager* connection_manager,
33 syncable::Directory* directory,
34 ExtensionsActivity* extensions_activity,
35 const std::vector<SyncEngineEventListener*>& listeners,
36 sessions::DebugInfoGetter* debug_info_getter,
37 ModelTypeRegistry* model_type_registry,
38 const std::string& invalidator_client_id) override;
39
40 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore(
41 StorageOption storage,
42 const std::string& dir_name,
43 const base::FilePath& backing_filepath) override;
44
45 Switches GetSwitches() const override;
46
47 private:
48 const Switches switches_;
49 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl);
50 };
51
52 } // namespace syncer
53
54 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/internal_components_factory.h ('k') | sync/internal_api/public/model_type_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698