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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) = 0; |
80 | 80 |
81 virtual scoped_ptr<syncable::DirectoryBackingStore> | 81 virtual scoped_ptr<syncable::DirectoryBackingStore> |
82 BuildDirectoryBackingStore( | 82 BuildDirectoryBackingStore( |
83 const std::string& dir_name, | 83 const std::string& dir_name, |
84 const FilePath& backing_filepath) = 0; | 84 const base::FilePath& backing_filepath) = 0; |
85 | 85 |
86 // Returns the Switches struct that this object is using as configuration, if | 86 // Returns the Switches struct that this object is using as configuration, if |
87 // the implementation is making use of one. | 87 // the implementation is making use of one. |
88 virtual Switches GetSwitches() const = 0; | 88 virtual Switches GetSwitches() const = 0; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace syncer | 91 } // namespace syncer |
92 | 92 |
93 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ | 93 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ |
OLD | NEW |