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 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
11 | 11 |
12 package sync_pb; | 12 package sync_pb; |
13 | 13 |
| 14 import "encryption.proto"; |
| 15 |
14 // Used for inspecting how long we spent performing operations in different | 16 // Used for inspecting how long we spent performing operations in different |
15 // backends. All times must be in millis. | 17 // backends. All times must be in millis. |
16 message ProfilingData { | 18 message ProfilingData { |
17 optional int64 meta_data_write_time = 1; | 19 optional int64 meta_data_write_time = 1; |
18 optional int64 file_data_write_time = 2; | 20 optional int64 file_data_write_time = 2; |
19 optional int64 user_lookup_time = 3; | 21 optional int64 user_lookup_time = 3; |
20 optional int64 meta_data_read_time = 4; | 22 optional int64 meta_data_read_time = 4; |
21 optional int64 file_data_read_time = 5; | 23 optional int64 file_data_read_time = 5; |
22 optional int64 total_request_time = 6; | 24 optional int64 total_request_time = 6; |
23 } | 25 } |
24 | 26 |
25 message EntitySpecifics { | 27 message EntitySpecifics { |
| 28 optional EncryptedData encrypted = 1; |
| 29 |
26 // To add new datatype-specific fields to the protocol, extend | 30 // To add new datatype-specific fields to the protocol, extend |
27 // EntitySpecifics. First, pick a non-colliding tag number by | 31 // EntitySpecifics. First, pick a non-colliding tag number by |
28 // picking a revision number of one of your past commits | 32 // picking a revision number of one of your past commits |
29 // to src.chromium.org. Then, in a different protocol buffer | 33 // to src.chromium.org. Then, in a different protocol buffer |
30 // definition that includes this, do the following: | 34 // definition that includes this, do the following: |
31 // | 35 // |
32 // extend EntitySpecifics { | 36 // extend EntitySpecifics { |
33 // MyDatatypeSpecifics my_datatype = 32222; | 37 // MyDatatypeSpecifics my_datatype = 32222; |
34 // } | 38 // } |
35 // | 39 // |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 // Opaque store ID; if it changes, the contents of the client's cache | 549 // Opaque store ID; if it changes, the contents of the client's cache |
546 // is meaningless to this server. This happens most typically when | 550 // is meaningless to this server. This happens most typically when |
547 // you switch from one storage backend instance (say, a test instance) | 551 // you switch from one storage backend instance (say, a test instance) |
548 // to another (say, the official instance). | 552 // to another (say, the official instance). |
549 optional string store_birthday = 6; | 553 optional string store_birthday = 6; |
550 | 554 |
551 optional ClientCommand client_command = 7; | 555 optional ClientCommand client_command = 7; |
552 optional ProfilingData profiling_data = 8; | 556 optional ProfilingData profiling_data = 8; |
553 }; | 557 }; |
554 | 558 |
OLD | NEW |