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

Side by Side Diff: chrome/browser/sync/protocol/sync.proto

Issue 6465005: [Sync] Initial support for encrypting any datatype (no UI hookup yet). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback and fix windows crash. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 optional EncryptedData encrypted = 1;
tim (not reviewing) 2011/02/15 19:58:04 Add a comment here describing how this field works
Nicolas Zea 2011/02/15 23:30:51 Done.
32
29 // To add new datatype-specific fields to the protocol, extend 33 // To add new datatype-specific fields to the protocol, extend
30 // EntitySpecifics. First, pick a non-colliding tag number by 34 // EntitySpecifics. First, pick a non-colliding tag number by
31 // picking a revision number of one of your past commits 35 // picking a revision number of one of your past commits
32 // to src.chromium.org. Then, in a different protocol buffer 36 // to src.chromium.org. Then, in a different protocol buffer
33 // definition that includes this, do the following: 37 // definition that includes this, do the following:
34 // 38 //
35 // extend EntitySpecifics { 39 // extend EntitySpecifics {
36 // MyDatatypeSpecifics my_datatype = 32222; 40 // MyDatatypeSpecifics my_datatype = 32222;
37 // } 41 // }
38 // 42 //
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // Opaque store ID; if it changes, the contents of the client's cache 557 // Opaque store ID; if it changes, the contents of the client's cache
554 // is meaningless to this server. This happens most typically when 558 // is meaningless to this server. This happens most typically when
555 // you switch from one storage backend instance (say, a test instance) 559 // you switch from one storage backend instance (say, a test instance)
556 // to another (say, the official instance). 560 // to another (say, the official instance).
557 optional string store_birthday = 6; 561 optional string store_birthday = 6;
558 562
559 optional ClientCommand client_command = 7; 563 optional ClientCommand client_command = 7;
560 optional ProfilingData profiling_data = 8; 564 optional ProfilingData profiling_data = 8;
561 }; 565 };
562 566
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698