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

Unified Diff: sync/syncable/nigori_util.h

Issue 10827266: [Sync] Add SyncEncryptionHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 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
« no previous file with comments | « sync/syncable/nigori_handler.cc ('k') | sync/syncable/nigori_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/nigori_util.h
diff --git a/sync/syncable/nigori_util.h b/sync/syncable/nigori_util.h
index 2edc9cdff5df98cc2f76cdf40daec429d501a7bd..0c020b464e298826961b6e70cc0c2dc5a5ad4346 100644
--- a/sync/syncable/nigori_util.h
+++ b/sync/syncable/nigori_util.h
@@ -68,6 +68,16 @@ bool UpdateEntryWithEncryption(
const sync_pb::EntitySpecifics& new_specifics,
MutableEntry* entry);
+// Updates |nigori| to match the encryption state specified by |encrypted_types|
+// and |encrypt_everything|.
+void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types,
+ bool encrypt_everything,
+ sync_pb::NigoriSpecifics* nigori);
+
+// Extracts the set of encrypted types from a nigori node.
+ModelTypeSet GetEncryptedTypesFromNigori(
+ const sync_pb::NigoriSpecifics& nigori);
+
} // namespace syncable
} // namespace syncer
« no previous file with comments | « sync/syncable/nigori_handler.cc ('k') | sync/syncable/nigori_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698