| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // should be advertised to the user). These will typically only change | 296 // should be advertised to the user). These will typically only change |
| 297 // via a command-line option. See class comment for more on what it means | 297 // via a command-line option. See class comment for more on what it means |
| 298 // for a datatype to be Registered. | 298 // for a datatype to be Registered. |
| 299 virtual void GetRegisteredDataTypes( | 299 virtual void GetRegisteredDataTypes( |
| 300 syncable::ModelTypeSet* registered_types) const; | 300 syncable::ModelTypeSet* registered_types) const; |
| 301 | 301 |
| 302 // Checks whether the Cryptographer is ready to encrypt and decrypt updates | 302 // Checks whether the Cryptographer is ready to encrypt and decrypt updates |
| 303 // for sensitive data types. | 303 // for sensitive data types. |
| 304 virtual bool IsCryptographerReady() const; | 304 virtual bool IsCryptographerReady() const; |
| 305 | 305 |
| 306 // Sets the Cryptographer's passphrase. This will check asynchronously whether |
| 307 // the passphrase is valid and notify ProfileSyncServiceObservers via the |
| 308 // NotificationService when the outcome is known. |
| 309 virtual void SetPassphrase(const std::string& passphrase); |
| 310 |
| 306 protected: | 311 protected: |
| 307 // Used by ProfileSyncServiceMock only. | 312 // Used by ProfileSyncServiceMock only. |
| 308 // | 313 // |
| 309 // TODO(akalin): Separate this class out into an abstract | 314 // TODO(akalin): Separate this class out into an abstract |
| 310 // ProfileSyncService interface and a ProfileSyncServiceImpl class | 315 // ProfileSyncService interface and a ProfileSyncServiceImpl class |
| 311 // so we don't need this hack anymore. | 316 // so we don't need this hack anymore. |
| 312 ProfileSyncService(); | 317 ProfileSyncService(); |
| 313 | 318 |
| 314 // Call this after any of the subsystems being synced (the bookmark | 319 // Call this after any of the subsystems being synced (the bookmark |
| 315 // model and the sync backend) finishes its initialization. When everything | 320 // model and the sync backend) finishes its initialization. When everything |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 447 |
| 443 NotificationRegistrar registrar_; | 448 NotificationRegistrar registrar_; |
| 444 | 449 |
| 445 ScopedRunnableMethodFactory<ProfileSyncService> | 450 ScopedRunnableMethodFactory<ProfileSyncService> |
| 446 scoped_runnable_method_factory_; | 451 scoped_runnable_method_factory_; |
| 447 | 452 |
| 448 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 453 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 449 }; | 454 }; |
| 450 | 455 |
| 451 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 456 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |