OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 sessions::SyncSessionContext* context) = 0; | 69 sessions::SyncSessionContext* context) = 0; |
70 | 70 |
71 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( | 71 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( |
72 ServerConnectionManager* connection_manager, | 72 ServerConnectionManager* connection_manager, |
73 syncable::Directory* directory, | 73 syncable::Directory* directory, |
74 const std::vector<ModelSafeWorker*> workers, | 74 const std::vector<ModelSafeWorker*> workers, |
75 ExtensionsActivityMonitor* monitor, | 75 ExtensionsActivityMonitor* monitor, |
76 ThrottledDataTypeTracker* throttled_data_type_tracker, | 76 ThrottledDataTypeTracker* throttled_data_type_tracker, |
77 const std::vector<SyncEngineEventListener*>& listeners, | 77 const std::vector<SyncEngineEventListener*>& listeners, |
78 sessions::DebugInfoGetter* debug_info_getter, | 78 sessions::DebugInfoGetter* debug_info_getter, |
79 TrafficRecorder* traffic_recorder) = 0; | 79 TrafficRecorder* traffic_recorder, |
| 80 const std::string& invalidator_client_id) = 0; |
80 | 81 |
81 virtual scoped_ptr<syncable::DirectoryBackingStore> | 82 virtual scoped_ptr<syncable::DirectoryBackingStore> |
82 BuildDirectoryBackingStore( | 83 BuildDirectoryBackingStore( |
83 const std::string& dir_name, | 84 const std::string& dir_name, |
84 const FilePath& backing_filepath) = 0; | 85 const FilePath& backing_filepath) = 0; |
85 | 86 |
86 // Returns the Switches struct that this object is using as configuration, if | 87 // Returns the Switches struct that this object is using as configuration, if |
87 // the implementation is making use of one. | 88 // the implementation is making use of one. |
88 virtual Switches GetSwitches() const = 0; | 89 virtual Switches GetSwitches() const = 0; |
89 }; | 90 }; |
90 | 91 |
91 } // namespace syncer | 92 } // namespace syncer |
92 | 93 |
93 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ | 94 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ |
OLD | NEW |