OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Sync protocol for communication between sync client and server. | 5 // Sync protocol for communication between sync client and server. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 option retain_unknown_fields = true; | 13 option retain_unknown_fields = true; |
14 | 14 |
15 package sync_pb; | 15 package sync_pb; |
16 | 16 |
| 17 import "encryption.proto"; |
| 18 |
17 // Used for inspecting how long we spent performing operations in different | 19 // Used for inspecting how long we spent performing operations in different |
18 // backends. All times must be in millis. | 20 // backends. All times must be in millis. |
19 message ProfilingData { | 21 message ProfilingData { |
20 optional int64 meta_data_write_time = 1; | 22 optional int64 meta_data_write_time = 1; |
21 optional int64 file_data_write_time = 2; | 23 optional int64 file_data_write_time = 2; |
22 optional int64 user_lookup_time = 3; | 24 optional int64 user_lookup_time = 3; |
23 optional int64 meta_data_read_time = 4; | 25 optional int64 meta_data_read_time = 4; |
24 optional int64 file_data_read_time = 5; | 26 optional int64 file_data_read_time = 5; |
25 optional int64 total_request_time = 6; | 27 optional int64 total_request_time = 6; |
26 } | 28 } |
27 | 29 |
28 message EntitySpecifics { | 30 message EntitySpecifics { |
| 31 // If a datatype is encrypted, this field will contain the encrypted |
| 32 // original EntitySpecifics. The extension for the datatype will continue |
| 33 // to exist, but contain only the default values. |
| 34 // Note that currently passwords employ their own legacy encryption scheme and |
| 35 // do not use this field. |
| 36 optional EncryptedData encrypted = 1; |
| 37 |
29 // To add new datatype-specific fields to the protocol, extend | 38 // To add new datatype-specific fields to the protocol, extend |
30 // EntitySpecifics. First, pick a non-colliding tag number by | 39 // EntitySpecifics. First, pick a non-colliding tag number by |
31 // picking a revision number of one of your past commits | 40 // picking a revision number of one of your past commits |
32 // to src.chromium.org. Then, in a different protocol buffer | 41 // to src.chromium.org. Then, in a different protocol buffer |
33 // definition that includes this, do the following: | 42 // definition that includes this, do the following: |
34 // | 43 // |
35 // extend EntitySpecifics { | 44 // extend EntitySpecifics { |
36 // MyDatatypeSpecifics my_datatype = 32222; | 45 // MyDatatypeSpecifics my_datatype = 32222; |
37 // } | 46 // } |
38 // | 47 // |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 // Opaque store ID; if it changes, the contents of the client's cache | 562 // Opaque store ID; if it changes, the contents of the client's cache |
554 // is meaningless to this server. This happens most typically when | 563 // is meaningless to this server. This happens most typically when |
555 // you switch from one storage backend instance (say, a test instance) | 564 // you switch from one storage backend instance (say, a test instance) |
556 // to another (say, the official instance). | 565 // to another (say, the official instance). |
557 optional string store_birthday = 6; | 566 optional string store_birthday = 6; |
558 | 567 |
559 optional ClientCommand client_command = 7; | 568 optional ClientCommand client_command = 7; |
560 optional ProfilingData profiling_data = 8; | 569 optional ProfilingData profiling_data = 8; |
561 }; | 570 }; |
562 | 571 |
OLD | NEW |