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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 // Returns true if we are currently set to encrypt all the sync data. Note: | 536 // Returns true if we are currently set to encrypt all the sync data. Note: |
537 // this is based on the cryptographer's settings, so if the user has recently | 537 // this is based on the cryptographer's settings, so if the user has recently |
538 // requested encryption to be turned on, this may not be true yet. For that, | 538 // requested encryption to be turned on, this may not be true yet. For that, |
539 // encryption_pending() must be checked. | 539 // encryption_pending() must be checked. |
540 virtual bool EncryptEverythingEnabled() const; | 540 virtual bool EncryptEverythingEnabled() const; |
541 | 541 |
542 // Fills |encrypted_types| with the set of currently encrypted types. Does | 542 // Fills |encrypted_types| with the set of currently encrypted types. Does |
543 // not account for types pending encryption. | 543 // not account for types pending encryption. |
544 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const; | 544 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const; |
545 | 545 |
| 546 #if defined(OS_ANDROID) |
| 547 // Android does not display password prompts, passwords are only allowed to be |
| 548 // synced if Cryptographer has already been initialized and does not have |
| 549 // pending keys. |
| 550 bool ShouldEnablePasswordSyncForAndroid() const; |
| 551 #endif |
| 552 |
546 // Returns true if the syncer is waiting for new datatypes to be encrypted. | 553 // Returns true if the syncer is waiting for new datatypes to be encrypted. |
547 virtual bool encryption_pending() const; | 554 virtual bool encryption_pending() const; |
548 | 555 |
549 const GURL& sync_service_url() const { return sync_service_url_; } | 556 const GURL& sync_service_url() const { return sync_service_url_; } |
550 bool auto_start_enabled() const { return auto_start_enabled_; } | 557 bool auto_start_enabled() const { return auto_start_enabled_; } |
551 SigninManager* signin() const { return signin_; } | 558 SigninManager* signin() const { return signin_; } |
552 bool setup_in_progress() const { return setup_in_progress_; } | 559 bool setup_in_progress() const { return setup_in_progress_; } |
553 | 560 |
554 // Stops the sync backend and sets the flag for suppressing sync startup. | 561 // Stops the sync backend and sets the flag for suppressing sync startup. |
555 void StopAndSuppress(); | 562 void StopAndSuppress(); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
897 | 904 |
898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
899 }; | 906 }; |
900 | 907 |
901 bool ShouldShowActionOnUI( | 908 bool ShouldShowActionOnUI( |
902 const syncer::SyncProtocolError& error); | 909 const syncer::SyncProtocolError& error); |
903 | 910 |
904 | 911 |
905 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |