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

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

Issue 6537027: Revert 75287 - [Sync] Initial support for encrypting any datatype (no UI hook... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
19 // Used for inspecting how long we spent performing operations in different 17 // Used for inspecting how long we spent performing operations in different
20 // backends. All times must be in millis. 18 // backends. All times must be in millis.
21 message ProfilingData { 19 message ProfilingData {
22 optional int64 meta_data_write_time = 1; 20 optional int64 meta_data_write_time = 1;
23 optional int64 file_data_write_time = 2; 21 optional int64 file_data_write_time = 2;
24 optional int64 user_lookup_time = 3; 22 optional int64 user_lookup_time = 3;
25 optional int64 meta_data_read_time = 4; 23 optional int64 meta_data_read_time = 4;
26 optional int64 file_data_read_time = 5; 24 optional int64 file_data_read_time = 5;
27 optional int64 total_request_time = 6; 25 optional int64 total_request_time = 6;
28 } 26 }
29 27
30 message EntitySpecifics { 28 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
38 // To add new datatype-specific fields to the protocol, extend 29 // To add new datatype-specific fields to the protocol, extend
39 // EntitySpecifics. First, pick a non-colliding tag number by 30 // EntitySpecifics. First, pick a non-colliding tag number by
40 // picking a revision number of one of your past commits 31 // picking a revision number of one of your past commits
41 // to src.chromium.org. Then, in a different protocol buffer 32 // to src.chromium.org. Then, in a different protocol buffer
42 // definition that includes this, do the following: 33 // definition that includes this, do the following:
43 // 34 //
44 // extend EntitySpecifics { 35 // extend EntitySpecifics {
45 // MyDatatypeSpecifics my_datatype = 32222; 36 // MyDatatypeSpecifics my_datatype = 32222;
46 // } 37 // }
47 // 38 //
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // Opaque store ID; if it changes, the contents of the client's cache 553 // Opaque store ID; if it changes, the contents of the client's cache
563 // is meaningless to this server. This happens most typically when 554 // is meaningless to this server. This happens most typically when
564 // you switch from one storage backend instance (say, a test instance) 555 // you switch from one storage backend instance (say, a test instance)
565 // to another (say, the official instance). 556 // to another (say, the official instance).
566 optional string store_birthday = 6; 557 optional string store_birthday = 6;
567 558
568 optional ClientCommand client_command = 7; 559 optional ClientCommand client_command = 7;
569 optional ProfilingData profiling_data = 8; 560 optional ProfilingData profiling_data = 8;
570 }; 561 };
571 562
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/nigori_specifics.proto ('k') | chrome/browser/sync/syncable/model_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698