OLD | NEW |
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 // 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 sessions::SyncSessionContext* context) = 0; | 44 sessions::SyncSessionContext* context) = 0; |
45 | 45 |
46 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( | 46 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( |
47 ServerConnectionManager* connection_manager, | 47 ServerConnectionManager* connection_manager, |
48 syncable::Directory* directory, | 48 syncable::Directory* directory, |
49 const std::vector<ModelSafeWorker*> workers, | 49 const std::vector<ModelSafeWorker*> workers, |
50 ExtensionsActivityMonitor* monitor, | 50 ExtensionsActivityMonitor* monitor, |
51 ThrottledDataTypeTracker* throttled_data_type_tracker, | 51 ThrottledDataTypeTracker* throttled_data_type_tracker, |
52 const std::vector<SyncEngineEventListener*>& listeners, | 52 const std::vector<SyncEngineEventListener*>& listeners, |
53 sessions::DebugInfoGetter* debug_info_getter, | 53 sessions::DebugInfoGetter* debug_info_getter, |
54 TrafficRecorder* traffic_recorder) = 0; | 54 TrafficRecorder* traffic_recorder, |
| 55 bool keystore_encryption_enabled) = 0; |
55 | 56 |
56 virtual scoped_ptr<syncable::DirectoryBackingStore> | 57 virtual scoped_ptr<syncable::DirectoryBackingStore> |
57 BuildDirectoryBackingStore( | 58 BuildDirectoryBackingStore( |
58 const std::string& dir_name, | 59 const std::string& dir_name, |
59 const FilePath& backing_filepath) = 0; | 60 const FilePath& backing_filepath) = 0; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace syncer | 63 } // namespace syncer |
63 | 64 |
64 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ | 65 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ |
OLD | NEW |