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

Unified Diff: sync/syncable/nigori_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/syncable/nigori_handler.h
diff --git a/sync/syncable/nigori_handler.h b/sync/syncable/nigori_handler.h
index 9ea1b0ec89be7ccd803f48ec7d8ff43bc4a7cc33..c47efa9b0cf1e6156ba44e6c9cee1e11fa03b800 100644
--- a/sync/syncable/nigori_handler.h
+++ b/sync/syncable/nigori_handler.h
@@ -35,6 +35,16 @@ class NigoriHandler {
sync_pb::NigoriSpecifics* nigori,
syncable::BaseTransaction* const trans) const = 0;
+ // Whether a keystore key needs to be requested from the sync server.
+ virtual bool NeedKeystoreKey(
+ syncable::BaseTransaction* const trans) const = 0;
+
+ // Set the keystore key the server returned for this account.
+ // Returns true on success, false otherwise.
+ virtual bool SetKeystoreKey(
+ const std::string& key,
+ syncable::BaseTransaction* const trans) = 0;
+
// Returns the set of currently encrypted types.
virtual ModelTypeSet GetEncryptedTypes(
syncable::BaseTransaction* const trans) const = 0;

Powered by Google App Engine
This is Rietveld 408576698