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

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

Issue 130193002: sync: Consistently refcount ModelSafeWorkers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix standalone sync client Created 6 years, 11 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 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 // InternalComponentsFactory exists so that tests can override creation of 5 // InternalComponentsFactory exists so that tests can override creation of
6 // components used by the SyncManager that are not exposed across the sync 6 // components used by the SyncManager that are not exposed across the sync
7 // API boundary. 7 // API boundary.
8 8
9 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ 9 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_
10 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ 10 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual ~InternalComponentsFactory() {} 75 virtual ~InternalComponentsFactory() {}
76 76
77 virtual scoped_ptr<SyncScheduler> BuildScheduler( 77 virtual scoped_ptr<SyncScheduler> BuildScheduler(
78 const std::string& name, 78 const std::string& name,
79 sessions::SyncSessionContext* context, 79 sessions::SyncSessionContext* context,
80 CancelationSignal* cancelation_signal) = 0; 80 CancelationSignal* cancelation_signal) = 0;
81 81
82 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( 82 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext(
83 ServerConnectionManager* connection_manager, 83 ServerConnectionManager* connection_manager,
84 syncable::Directory* directory, 84 syncable::Directory* directory,
85 const std::vector<ModelSafeWorker*>& workers, 85 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
86 ExtensionsActivity* extensions_activity, 86 ExtensionsActivity* extensions_activity,
87 const std::vector<SyncEngineEventListener*>& listeners, 87 const std::vector<SyncEngineEventListener*>& listeners,
88 sessions::DebugInfoGetter* debug_info_getter, 88 sessions::DebugInfoGetter* debug_info_getter,
89 TrafficRecorder* traffic_recorder, 89 TrafficRecorder* traffic_recorder,
90 const std::string& invalidator_client_id) = 0; 90 const std::string& invalidator_client_id) = 0;
91 91
92 virtual scoped_ptr<syncable::DirectoryBackingStore> 92 virtual scoped_ptr<syncable::DirectoryBackingStore>
93 BuildDirectoryBackingStore( 93 BuildDirectoryBackingStore(
94 const std::string& dir_name, 94 const std::string& dir_name,
95 const base::FilePath& backing_filepath) = 0; 95 const base::FilePath& backing_filepath) = 0;
96 96
97 // Returns the Switches struct that this object is using as configuration, if 97 // Returns the Switches struct that this object is using as configuration, if
98 // the implementation is making use of one. 98 // the implementation is making use of one.
99 virtual Switches GetSwitches() const = 0; 99 virtual Switches GetSwitches() const = 0;
100 }; 100 };
101 101
102 } // namespace syncer 102 } // namespace syncer
103 103
104 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ 104 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/internal_components_factory_impl.cc ('k') | sync/internal_api/public/internal_components_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698