| Index: chrome/browser/sync/internal_api/sync_manager.h
|
| diff --git a/chrome/browser/sync/internal_api/sync_manager.h b/chrome/browser/sync/internal_api/sync_manager.h
|
| index 650893d2aba22d7f89deeae55187d8fcfc10fdc7..0dd84e6464266a1d65940388c6afd35d70f8c787 100644
|
| --- a/chrome/browser/sync/internal_api/sync_manager.h
|
| +++ b/chrome/browser/sync/internal_api/sync_manager.h
|
| @@ -376,9 +376,17 @@ class SyncManager {
|
| virtual void OnClearServerDataSucceeded() = 0;
|
| virtual void OnClearServerDataFailed() = 0;
|
|
|
| + // Called when the set of encrypted types changes. Called from
|
| + // within a transaction.
|
| + virtual void OnEncryptedTypesChanged(
|
| + const syncable::ModelTypeSet& encrypted_types,
|
| + bool encrypt_everything) = 0;
|
| +
|
| // Called after we finish encrypting all appropriate datatypes.
|
| - virtual void OnEncryptionComplete(
|
| - const syncable::ModelTypeSet& encrypted_types) = 0;
|
| + // Always preceded by a call to OnEncryptedTypesChanged with the
|
| + // latest set of encrypted types. Called from within a
|
| + // transaction.
|
| + virtual void OnEncryptionComplete() = 0;
|
|
|
| virtual void OnActionableError(
|
| const browser_sync::SyncProtocolError& sync_protocol_error) = 0;
|
| @@ -535,11 +543,11 @@ class SyncManager {
|
|
|
| // Returns true if we are currently encrypting all sync data. May
|
| // be called on any thread.
|
| - bool EncryptEverythingEnabled() const;
|
| + bool EncryptEverythingEnabledForTest() const;
|
|
|
| // Gets the set of encrypted types from the cryptographer
|
| // Note: opens a transaction. May be called from any thread.
|
| - syncable::ModelTypeSet GetEncryptedDataTypes() const;
|
| + syncable::ModelTypeSet GetEncryptedDataTypesForTest() const;
|
|
|
| // Reads the nigori node to determine if any experimental types should be
|
| // enabled.
|
|
|