Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 528 // Returns true if we are currently set to encrypt all the sync data. Note: | 528 // Returns true if we are currently set to encrypt all the sync data. Note: |
| 529 // this is based on the cryptographer's settings, so if the user has recently | 529 // this is based on the cryptographer's settings, so if the user has recently |
| 530 // requested encryption to be turned on, this may not be true yet. For that, | 530 // requested encryption to be turned on, this may not be true yet. For that, |
| 531 // encryption_pending() must be checked. | 531 // encryption_pending() must be checked. |
| 532 virtual bool EncryptEverythingEnabled() const; | 532 virtual bool EncryptEverythingEnabled() const; |
| 533 | 533 |
| 534 // Fills |encrypted_types| with the set of currently encrypted types. Does | 534 // Fills |encrypted_types| with the set of currently encrypted types. Does |
| 535 // not account for types pending encryption. | 535 // not account for types pending encryption. |
| 536 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const; | 536 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const; |
| 537 | 537 |
| 538 #if defined(OS_ANDROID) | |
| 539 // Android does not display password prompts, passwords are only allowed to be | |
| 540 // synced, if Cryptographer can decrypt them. | |
|
Nicolas Zea
2013/01/18 00:05:11
nit: "if the Cryptographer has already been initia
shashi
2013/01/18 02:06:31
Done.
| |
| 541 bool IsPasswordSyncEnabledForAndroid() const; | |
| 542 #endif | |
| 543 | |
| 538 // Returns true if the syncer is waiting for new datatypes to be encrypted. | 544 // Returns true if the syncer is waiting for new datatypes to be encrypted. |
| 539 virtual bool encryption_pending() const; | 545 virtual bool encryption_pending() const; |
| 540 | 546 |
| 541 const GURL& sync_service_url() const { return sync_service_url_; } | 547 const GURL& sync_service_url() const { return sync_service_url_; } |
| 542 bool auto_start_enabled() const { return auto_start_enabled_; } | 548 bool auto_start_enabled() const { return auto_start_enabled_; } |
| 543 SigninManager* signin() const { return signin_; } | 549 SigninManager* signin() const { return signin_; } |
| 544 bool setup_in_progress() const { return setup_in_progress_; } | 550 bool setup_in_progress() const { return setup_in_progress_; } |
| 545 | 551 |
| 546 // Stops the sync backend and sets the flag for suppressing sync startup. | 552 // Stops the sync backend and sets the flag for suppressing sync startup. |
| 547 void StopAndSuppress(); | 553 void StopAndSuppress(); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 888 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 894 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
| 889 | 895 |
| 890 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 896 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 891 }; | 897 }; |
| 892 | 898 |
| 893 bool ShouldShowActionOnUI( | 899 bool ShouldShowActionOnUI( |
| 894 const syncer::SyncProtocolError& error); | 900 const syncer::SyncProtocolError& error); |
| 895 | 901 |
| 896 | 902 |
| 897 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 903 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |