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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 const std::string& token, | 195 const std::string& token, |
196 syncer::BootstrapTokenType token_type); | 196 syncer::BootstrapTokenType token_type); |
197 | 197 |
198 // For convenience, checks if initialization state is INITIALIZED. | 198 // For convenience, checks if initialization state is INITIALIZED. |
199 bool initialized() const { return initialized_; } | 199 bool initialized() const { return initialized_; } |
200 | 200 |
201 // Let the front end handle the actionable error event. | 201 // Let the front end handle the actionable error event. |
202 void HandleActionableErrorEventOnFrontendLoop( | 202 void HandleActionableErrorEventOnFrontendLoop( |
203 const syncer::SyncProtocolError& sync_error); | 203 const syncer::SyncProtocolError& sync_error); |
204 | 204 |
| 205 // Handle a migration request. |
| 206 void HandleMigrationRequestedOnFrontendLoop(const syncer::ModelTypeSet types); |
| 207 |
205 // Checks if |passphrase| can be used to decrypt the cryptographer's pending | 208 // Checks if |passphrase| can be used to decrypt the cryptographer's pending |
206 // keys that were cached during NotifyPassphraseRequired. Returns true if | 209 // keys that were cached during NotifyPassphraseRequired. Returns true if |
207 // decryption was successful. Returns false otherwise. Must be called with a | 210 // decryption was successful. Returns false otherwise. Must be called with a |
208 // non-empty pending keys cache. | 211 // non-empty pending keys cache. |
209 bool CheckPassphraseAgainstCachedPendingKeys( | 212 bool CheckPassphraseAgainstCachedPendingKeys( |
210 const std::string& passphrase) const; | 213 const std::string& passphrase) const; |
211 | 214 |
212 // Invoked when a passphrase is required to decrypt a set of Nigori keys, | 215 // Invoked when a passphrase is required to decrypt a set of Nigori keys, |
213 // or for encrypting. |reason| denotes why the passphrase was required. | 216 // or for encrypting. |reason| denotes why the passphrase was required. |
214 // |pending_keys| is a copy of the cryptographer's pending keys, that are | 217 // |pending_keys| is a copy of the cryptographer's pending keys, that are |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 316 |
314 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 317 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
315 | 318 |
316 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 319 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
317 }; | 320 }; |
318 | 321 |
319 } // namespace browser_sync | 322 } // namespace browser_sync |
320 | 323 |
321 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 324 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
322 | 325 |
OLD | NEW |