| OLD | NEW |
| 1 // Copyright (c) 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_ |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "sync/base/sync_export.h" |
| 16 #include "sync/internal_api/public/engine/model_safe_worker.h" | 17 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 17 | 18 |
| 18 namespace syncer { | 19 namespace syncer { |
| 19 | 20 |
| 20 class ExtensionsActivityMonitor; | 21 class ExtensionsActivityMonitor; |
| 21 class ServerConnectionManager; | 22 class ServerConnectionManager; |
| 22 class SyncEngineEventListener; | 23 class SyncEngineEventListener; |
| 23 class SyncScheduler; | 24 class SyncScheduler; |
| 24 class TrafficRecorder; | 25 class TrafficRecorder; |
| 25 | 26 |
| 26 class ThrottledDataTypeTracker; | 27 class ThrottledDataTypeTracker; |
| 27 | 28 |
| 28 namespace sessions { | 29 namespace sessions { |
| 29 class DebugInfoGetter; | 30 class DebugInfoGetter; |
| 30 class SyncSessionContext; | 31 class SyncSessionContext; |
| 31 } | 32 } |
| 32 | 33 |
| 33 namespace syncable { | 34 namespace syncable { |
| 34 class Directory; | 35 class Directory; |
| 35 class DirectoryBackingStore; | 36 class DirectoryBackingStore; |
| 36 } | 37 } |
| 37 | 38 |
| 38 class InternalComponentsFactory { | 39 class SYNC_EXPORT InternalComponentsFactory { |
| 39 public: | 40 public: |
| 40 enum EncryptionMethod { | 41 enum EncryptionMethod { |
| 41 ENCRYPTION_LEGACY, | 42 ENCRYPTION_LEGACY, |
| 42 // Option to enable support for keystore key based encryption. | 43 // Option to enable support for keystore key based encryption. |
| 43 ENCRYPTION_KEYSTORE | 44 ENCRYPTION_KEYSTORE |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 enum BackoffOverride { | 47 enum BackoffOverride { |
| 47 BACKOFF_NORMAL, | 48 BACKOFF_NORMAL, |
| 48 // Use this value for integration testing to avoid long delays / | 49 // Use this value for integration testing to avoid long delays / |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const FilePath& backing_filepath) = 0; | 84 const FilePath& backing_filepath) = 0; |
| 84 | 85 |
| 85 // 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 |
| 86 // the implementation is making use of one. | 87 // the implementation is making use of one. |
| 87 virtual Switches GetSwitches() const = 0; | 88 virtual Switches GetSwitches() const = 0; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace syncer | 91 } // namespace syncer |
| 91 | 92 |
| 92 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ | 93 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_ |
| OLD | NEW |