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

Unified Diff: sync/internal_api/public/sync_encryption_handler.h

Issue 10878015: [Sync] Move keystore key handling to SyncEncryptionHandlerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/sync_encryption_handler.h
diff --git a/sync/internal_api/public/sync_encryption_handler.h b/sync/internal_api/public/sync_encryption_handler.h
index eefffdfada490ce7221b559ad8ec9537cf05c466..88ec7a27e3bf91468533b7897aa2896139bfbc41 100644
--- a/sync/internal_api/public/sync_encryption_handler.h
+++ b/sync/internal_api/public/sync_encryption_handler.h
@@ -38,6 +38,12 @@ enum PassphraseState {
CUSTOM_PASSPHRASE = 3, // User-provided passphrase.
};
+// Enum used to distinguish which bootstrap encryption token is being updated.
+enum BootstrapTokenType {
+ PASSPHRASE_BOOTSTRAP_TOKEN,
+ KEYSTORE_BOOTSTRAP_TOKEN
+};
+
// Sync's encryption handler. Handles tracking encrypted types, ensuring the
// cryptographer encrypts with the proper key and has the most recent keybag,
// and keeps the nigori node up to date.
@@ -77,7 +83,8 @@ class SyncEncryptionHandler {
// with explicit passphrases, it will be the most recently seen custom
// passphrase.
virtual void OnBootstrapTokenUpdated(
- const std::string& bootstrap_token) = 0;
+ const std::string& bootstrap_token,
+ BootstrapTokenType type) = 0;
// Called when the set of encrypted types or the encrypt
// everything flag has been changed. Note that encryption isn't

Powered by Google App Engine
This is Rietveld 408576698