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

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

Issue 2828021: Take 2: sync changes to support encryption (Closed)
Patch Set: fix flaky password test under valgrind Created 10 years, 6 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698