| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 SyncClient* sync_client, | 53 SyncClient* sync_client, |
| 54 invalidation::InvalidationService* invalidator, | 54 invalidation::InvalidationService* invalidator, |
| 55 const base::WeakPtr<SyncPrefs>& sync_prefs, | 55 const base::WeakPtr<SyncPrefs>& sync_prefs, |
| 56 const base::FilePath& sync_data_folder); | 56 const base::FilePath& sync_data_folder); |
| 57 ~SyncBackendHostImpl() override; | 57 ~SyncBackendHostImpl() override; |
| 58 | 58 |
| 59 // SyncEngine implementation. | 59 // SyncEngine implementation. |
| 60 void Initialize(InitParams params) override; | 60 void Initialize(InitParams params) override; |
| 61 void TriggerRefresh(const ModelTypeSet& types) override; | 61 void TriggerRefresh(const ModelTypeSet& types) override; |
| 62 void UpdateCredentials(const SyncCredentials& credentials) override; | 62 void UpdateCredentials(const SyncCredentials& credentials) override; |
| 63 void StartConfiguration() override; | |
| 64 void StartSyncingWithServer() override; | 63 void StartSyncingWithServer() override; |
| 65 void SetEncryptionPassphrase(const std::string& passphrase, | 64 void SetEncryptionPassphrase(const std::string& passphrase, |
| 66 bool is_explicit) override; | 65 bool is_explicit) override; |
| 67 bool SetDecryptionPassphrase(const std::string& passphrase) override | 66 bool SetDecryptionPassphrase(const std::string& passphrase) override |
| 68 WARN_UNUSED_RESULT; | 67 WARN_UNUSED_RESULT; |
| 69 void StopSyncingForShutdown() override; | 68 void StopSyncingForShutdown() override; |
| 70 void Shutdown(ShutdownReason reason) override; | 69 void Shutdown(ShutdownReason reason) override; |
| 71 void ConfigureDataTypes(ConfigureParams params) override; | 70 void ConfigureDataTypes(ConfigureParams params) override; |
| 72 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override; | |
| 73 void UnregisterDirectoryDataType(ModelType type) override; | |
| 74 void ActivateDirectoryDataType(ModelType type, | 71 void ActivateDirectoryDataType(ModelType type, |
| 75 ModelSafeGroup group, | 72 ModelSafeGroup group, |
| 76 ChangeProcessor* change_processor) override; | 73 ChangeProcessor* change_processor) override; |
| 77 void DeactivateDirectoryDataType(ModelType type) override; | 74 void DeactivateDirectoryDataType(ModelType type) override; |
| 78 void ActivateNonBlockingDataType(ModelType type, | 75 void ActivateNonBlockingDataType(ModelType type, |
| 79 std::unique_ptr<ActivationContext>) override; | 76 std::unique_ptr<ActivationContext>) override; |
| 80 void DeactivateNonBlockingDataType(ModelType type) override; | 77 void DeactivateNonBlockingDataType(ModelType type) override; |
| 81 void EnableEncryptEverything() override; | 78 void EnableEncryptEverything() override; |
| 82 UserShare* GetUserShare() const override; | 79 UserShare* GetUserShare() const override; |
| 83 Status GetDetailedStatus() override; | 80 Status GetDetailedStatus() override; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 base::ThreadChecker thread_checker_; | 295 base::ThreadChecker thread_checker_; |
| 299 | 296 |
| 300 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 297 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
| 301 | 298 |
| 302 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 299 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
| 303 }; | 300 }; |
| 304 | 301 |
| 305 } // namespace syncer | 302 } // namespace syncer |
| 306 | 303 |
| 307 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 304 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| OLD | NEW |