| 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 #ifndef COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ | 6 #define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 STORAGE_ON_DISK, | 83 STORAGE_ON_DISK, |
| 84 // Use this to test the case where a directory fails to load. | 84 // Use this to test the case where a directory fails to load. |
| 85 STORAGE_INVALID | 85 STORAGE_INVALID |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 virtual ~EngineComponentsFactory() {} | 88 virtual ~EngineComponentsFactory() {} |
| 89 | 89 |
| 90 virtual std::unique_ptr<SyncScheduler> BuildScheduler( | 90 virtual std::unique_ptr<SyncScheduler> BuildScheduler( |
| 91 const std::string& name, | 91 const std::string& name, |
| 92 SyncCycleContext* context, | 92 SyncCycleContext* context, |
| 93 CancelationSignal* cancelation_signal) = 0; | 93 CancelationSignal* cancelation_signal, |
| 94 bool ignore_auth_credentials) = 0; |
| 94 | 95 |
| 95 virtual std::unique_ptr<SyncCycleContext> BuildContext( | 96 virtual std::unique_ptr<SyncCycleContext> BuildContext( |
| 96 ServerConnectionManager* connection_manager, | 97 ServerConnectionManager* connection_manager, |
| 97 syncable::Directory* directory, | 98 syncable::Directory* directory, |
| 98 ExtensionsActivity* extensions_activity, | 99 ExtensionsActivity* extensions_activity, |
| 99 const std::vector<SyncEngineEventListener*>& listeners, | 100 const std::vector<SyncEngineEventListener*>& listeners, |
| 100 DebugInfoGetter* debug_info_getter, | 101 DebugInfoGetter* debug_info_getter, |
| 101 ModelTypeRegistry* model_type_registry, | 102 ModelTypeRegistry* model_type_registry, |
| 102 const std::string& invalidator_client_id) = 0; | 103 const std::string& invalidator_client_id) = 0; |
| 103 | 104 |
| 104 virtual std::unique_ptr<syncable::DirectoryBackingStore> | 105 virtual std::unique_ptr<syncable::DirectoryBackingStore> |
| 105 BuildDirectoryBackingStore(StorageOption storage, | 106 BuildDirectoryBackingStore(StorageOption storage, |
| 106 const std::string& dir_name, | 107 const std::string& dir_name, |
| 107 const base::FilePath& backing_filepath) = 0; | 108 const base::FilePath& backing_filepath) = 0; |
| 108 | 109 |
| 109 // Returns the Switches struct that this object is using as configuration, if | 110 // Returns the Switches struct that this object is using as configuration, if |
| 110 // the implementation is making use of one. | 111 // the implementation is making use of one. |
| 111 virtual Switches GetSwitches() const = 0; | 112 virtual Switches GetSwitches() const = 0; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace syncer | 115 } // namespace syncer |
| 115 | 116 |
| 116 #endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ | 117 #endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_ |
| OLD | NEW |