OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 syntax = "proto2"; |
| 6 |
| 7 option optimize_for = LITE_RUNTIME; |
| 8 option retain_unknown_fields = true; |
| 9 |
| 10 package sync_pb; |
| 11 |
| 12 import "sync.proto"; |
| 13 |
| 14 // Sync proto to store data type global metadata in model type storage. |
| 15 message DataTypeState { |
| 16 // The latest progress markers received from the server. |
| 17 optional DataTypeProgressMarker progress_marker = 1; |
| 18 |
| 19 // A data type context. Sent to the server in every commit or update |
| 20 // request. May be updated by either responses from the server or requests |
| 21 // made on the model thread. The interpretation of this value may be |
| 22 // data-type specific. Many data types ignore it. |
| 23 optional DataTypeContext type_context = 2; |
| 24 |
| 25 // This value is set if this type's data should be encrypted on the server. |
| 26 // If this key changes, the client will need to re-commit all of its local |
| 27 // data to the server using the new encryption key. |
| 28 optional string encryption_key_name = 3; |
| 29 |
| 30 // This flag is set to true when the first download cycle is complete. The |
| 31 // ModelTypeProcessor should not attempt to commit any items until this |
| 32 // flag is set. |
| 33 optional bool initial_sync_done = 4; |
| 34 } |
OLD | NEW |