Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 11946058: Add password sync for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698