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

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

Issue 442053002: sync: Add non-blocking type encryption (retry) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/engine/model_type_sync_worker_impl_unittest.cc ('k') | sync/internal_api/public/sync_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/non_blocking_sync_common.h
diff --git a/sync/internal_api/public/non_blocking_sync_common.h b/sync/internal_api/public/non_blocking_sync_common.h
index 7c7580bb53521718cdf9527a34f0df92f8600ba4..b53e6a6e06f388127bdd2529f88cf3dc9155c2c3 100644
--- a/sync/internal_api/public/non_blocking_sync_common.h
+++ b/sync/internal_api/public/non_blocking_sync_common.h
@@ -38,6 +38,11 @@ struct SYNC_EXPORT_PRIVATE DataTypeState {
// until the first download cycle has completed.
std::string type_root_id;
+ // This value is set if this type's data should be encrypted on the server.
+ // If this key changes, the client will need to re-commit all of its local
+ // data to the server using the new encryption key.
+ std::string encryption_key_name;
+
// A strictly increasing counter used to generate unique values for the
// client-assigned IDs. The incrementing and ID assignment happens on the
// sync thread, but we store the value here so we can pass it back to the
@@ -51,7 +56,6 @@ struct SYNC_EXPORT_PRIVATE DataTypeState {
// flag is set.
bool initial_sync_done;
};
-
struct SYNC_EXPORT_PRIVATE CommitRequestData {
CommitRequestData();
~CommitRequestData();
@@ -94,6 +98,7 @@ struct SYNC_EXPORT_PRIVATE UpdateResponseData {
std::string non_unique_name;
bool deleted;
sync_pb::EntitySpecifics specifics;
+ std::string encryption_key_name;
};
typedef std::vector<CommitRequestData> CommitRequestDataList;
« no previous file with comments | « sync/engine/model_type_sync_worker_impl_unittest.cc ('k') | sync/internal_api/public/sync_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698