| 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_CORE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // potentially blocking) syncapi operations. | 99 // potentially blocking) syncapi operations. |
| 100 // | 100 // |
| 101 // Called to perform initialization of the syncapi on behalf of | 101 // Called to perform initialization of the syncapi on behalf of |
| 102 // SyncEngine::Initialize. | 102 // SyncEngine::Initialize. |
| 103 void DoInitialize(SyncEngine::InitParams params); | 103 void DoInitialize(SyncEngine::InitParams params); |
| 104 | 104 |
| 105 // Called to perform credential update on behalf of | 105 // Called to perform credential update on behalf of |
| 106 // SyncEngine::UpdateCredentials. | 106 // SyncEngine::UpdateCredentials. |
| 107 void DoUpdateCredentials(const SyncCredentials& credentials); | 107 void DoUpdateCredentials(const SyncCredentials& credentials); |
| 108 | 108 |
| 109 // Switches sync engine into configuration mode. In this mode only initial | |
| 110 // data for newly enabled types is downloaded from server. No local changes | |
| 111 // are committed to server. | |
| 112 void DoStartConfiguration(); | |
| 113 | |
| 114 // Called to tell the syncapi to start syncing (generally after | 109 // Called to tell the syncapi to start syncing (generally after |
| 115 // initialization and authentication). | 110 // initialization and authentication). |
| 116 void DoStartSyncing(base::Time last_poll_time); | 111 void DoStartSyncing(const ModelSafeRoutingInfo& routing_info, |
| 112 base::Time last_poll_time); |
| 117 | 113 |
| 118 // Called to set the passphrase for encryption. | 114 // Called to set the passphrase for encryption. |
| 119 void DoSetEncryptionPassphrase(const std::string& passphrase, | 115 void DoSetEncryptionPassphrase(const std::string& passphrase, |
| 120 bool is_explicit); | 116 bool is_explicit); |
| 121 | 117 |
| 122 // Called to decrypt the pending keys. | 118 // Called to decrypt the pending keys. |
| 123 void DoSetDecryptionPassphrase(const std::string& passphrase); | 119 void DoSetDecryptionPassphrase(const std::string& passphrase); |
| 124 | 120 |
| 125 // Called to turn on encryption of all sync data as well as | 121 // Called to turn on encryption of all sync data as well as |
| 126 // reencrypt everything. | 122 // reencrypt everything. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 base::ThreadChecker thread_checker_; | 244 base::ThreadChecker thread_checker_; |
| 249 | 245 |
| 250 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 246 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 251 | 247 |
| 252 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 248 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 253 }; | 249 }; |
| 254 | 250 |
| 255 } // namespace syncer | 251 } // namespace syncer |
| 256 | 252 |
| 257 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 253 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |