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

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

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 8 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_
10 10
11 #include "sync/internal_api/public/internal_components_factory.h" 11 #include "sync/internal_api/public/internal_components_factory.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 class InternalComponentsFactoryImpl : public InternalComponentsFactory { 15 class InternalComponentsFactoryImpl : public InternalComponentsFactory {
16 public: 16 public:
17 InternalComponentsFactoryImpl(); 17 InternalComponentsFactoryImpl();
18 virtual ~InternalComponentsFactoryImpl(); 18 virtual ~InternalComponentsFactoryImpl();
19 19
20 virtual scoped_ptr<SyncScheduler> BuildScheduler( 20 virtual scoped_ptr<SyncScheduler> BuildScheduler(
21 const std::string& name, 21 const std::string& name,
22 sessions::SyncSessionContext* context) OVERRIDE; 22 sessions::SyncSessionContext* context) OVERRIDE;
23 23
24 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( 24 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext(
25 ServerConnectionManager* connection_manager, 25 ServerConnectionManager* connection_manager,
26 syncable::Directory* directory, 26 syncable::Directory* directory,
27 const ModelSafeRoutingInfo& routing_info,
28 const std::vector<ModelSafeWorker*> workers, 27 const std::vector<ModelSafeWorker*> workers,
29 ExtensionsActivityMonitor* monitor, 28 ExtensionsActivityMonitor* monitor,
30 ThrottledDataTypeTracker* throttled_data_type_tracker, 29 ThrottledDataTypeTracker* throttled_data_type_tracker,
31 const std::vector<SyncEngineEventListener*>& listeners, 30 const std::vector<SyncEngineEventListener*>& listeners,
32 sessions::DebugInfoGetter* debug_info_getter, 31 sessions::DebugInfoGetter* debug_info_getter,
33 TrafficRecorder* traffic_recorder) OVERRIDE; 32 TrafficRecorder* traffic_recorder) OVERRIDE;
34 33
35 virtual scoped_ptr<syncable::DirectoryBackingStore> 34 virtual scoped_ptr<syncable::DirectoryBackingStore>
36 BuildDirectoryBackingStore( 35 BuildDirectoryBackingStore(
37 const std::string& dir_name, 36 const std::string& dir_name,
38 const FilePath& backing_filepath) OVERRIDE; 37 const FilePath& backing_filepath) OVERRIDE;
39 38
40 private: 39 private:
41 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); 40 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl);
42 }; 41 };
43 42
44 } // namespace syncer 43 } // namespace syncer
45 44
46 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ 45 #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/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698