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

Unified Diff: sync/protocol/data_type_state.proto

Issue 1678343002: [Sync] Moving DataTypeState to proto for serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/internal_api/test/fake_metadata_change_list.cc ('k') | sync/protocol/protocol.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/data_type_state.proto
diff --git a/sync/protocol/data_type_state.proto b/sync/protocol/data_type_state.proto
new file mode 100644
index 0000000000000000000000000000000000000000..ed9895990dc1d19f7fddf9a7289e54d5ba1e35ed
--- /dev/null
+++ b/sync/protocol/data_type_state.proto
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+option retain_unknown_fields = true;
+
+package sync_pb;
+
+import "sync.proto";
+
+// Sync proto to store data type global metadata in model type storage.
+message DataTypeState {
+ // The latest progress markers received from the server.
+ optional DataTypeProgressMarker progress_marker = 1;
+
+ // A data type context. Sent to the server in every commit or update
+ // request. May be updated by either by responses from the server or
pavely 2016/02/10 00:21:21 nit: extra "by" in sentence.
skym 2016/02/10 15:19:26 Done.
+ // requests made on the model thread. The interpretation of this value may
+ // be data-type specific. Many data types ignore it.
+ optional DataTypeContext type_context = 2;
+
+ // 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.
+ optional string encryption_key_name = 3;
+
+ // This flag is set to true when the first download cycle is complete. The
+ // ModelTypeProcessor should not attempt to commit any items until this
+ // flag is set.
+ optional bool initial_sync_done = 4;
+}
« no previous file with comments | « sync/internal_api/test/fake_metadata_change_list.cc ('k') | sync/protocol/protocol.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698