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

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

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nigori access in testserver Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "app_notification_specifics.proto";
18 import "app_setting_specifics.proto";
19 import "app_specifics.proto";
20 import "autofill_specifics.proto";
21 import "bookmark_specifics.proto";
22 import "extension_setting_specifics.proto";
23 import "extension_specifics.proto";
24 import "nigori_specifics.proto";
25 import "password_specifics.proto";
26 import "preference_specifics.proto";
27 import "search_engine_specifics.proto";
28 import "session_specifics.proto";
29 import "theme_specifics.proto";
30 import "typed_url_specifics.proto";
17 import "encryption.proto"; 31 import "encryption.proto";
18 import "sync_enums.proto"; 32 import "sync_enums.proto";
19 import "client_commands.proto"; 33 import "client_commands.proto";
20 import "client_debug_info.proto"; 34 import "client_debug_info.proto";
21 35
22 // Used for inspecting how long we spent performing operations in different 36 // Used for inspecting how long we spent performing operations in different
23 // backends. All times must be in millis. 37 // backends. All times must be in millis.
24 message ProfilingData { 38 message ProfilingData {
25 optional int64 meta_data_write_time = 1; 39 optional int64 meta_data_write_time = 1;
26 optional int64 file_data_write_time = 2; 40 optional int64 file_data_write_time = 2;
(...skipping 26 matching lines...) Expand all
53 // - MyDatatypeSpecifics is the type (probably a message type defined 67 // - MyDatatypeSpecifics is the type (probably a message type defined
54 // in your new .proto file) that you want to associate with each 68 // in your new .proto file) that you want to associate with each
55 // object of the new datatype. 69 // object of the new datatype.
56 // - my_datatype is the field identifier you'll use to access the 70 // - my_datatype is the field identifier you'll use to access the
57 // datatype specifics from the code. 71 // datatype specifics from the code.
58 // 72 //
59 // Server implementations are obligated to preserve the contents of 73 // Server implementations are obligated to preserve the contents of
60 // EntitySpecifics when it contains unrecognized extensions. In this 74 // EntitySpecifics when it contains unrecognized extensions. In this
61 // way, it is possible to add new datatype fields without having 75 // way, it is possible to add new datatype fields without having
62 // to update the server. 76 // to update the server.
63 extensions 30000 to max; 77
78 optional AutofillSpecifics autofill = 31729;
79 optional ExtensionSettingSpecifics extension_setting = 96159;
80 optional ExtensionSpecifics extension = 48119;
81 optional NigoriSpecifics nigori = 47745;
82 optional PasswordSpecifics password = 45873;
83 optional PreferenceSpecifics preference = 37702;
84 optional SearchEngineSpecifics search_engine = 88610;
85 optional SessionSpecifics session = 50119;
86 optional ThemeSpecifics theme = 41210;
87 optional TypedUrlSpecifics typed_url = 40781;
88 optional BookmarkSpecifics bookmark = 32904;
89 optional AppNotification app_notification = 45184;
90 optional AppSettingSpecifics app_setting = 103656;
91 optional AppSpecifics app = 48364;
92 optional AutofillProfileSpecifics autofill_profile = 63951;
64 } 93 }
65 94
66 message SyncEntity { 95 message SyncEntity {
67 // This item's identifier. In a commit of a new item, this will be a 96 // This item's identifier. In a commit of a new item, this will be a
68 // client-generated ID. If the commit succeeds, the server will generate 97 // client-generated ID. If the commit succeeds, the server will generate
69 // a globally unique ID and return it to the committing client in the 98 // a globally unique ID and return it to the committing client in the
70 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, 99 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse,
71 // |id_string| is always the server generated ID. The original 100 // |id_string| is always the server generated ID. The original
72 // client-generated ID is preserved in the |originator_client_id| field. 101 // client-generated ID is preserved in the |originator_client_id| field.
73 // Present in both GetUpdatesResponse and CommitMessage. 102 // Present in both GetUpdatesResponse and CommitMessage.
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 optional string store_birthday = 6; 666 optional string store_birthday = 6;
638 667
639 optional ClientCommand client_command = 7; 668 optional ClientCommand client_command = 7;
640 optional ProfilingData profiling_data = 8; 669 optional ProfilingData profiling_data = 8;
641 670
642 // The data types whose storage has been migrated. Present when the value of 671 // The data types whose storage has been migrated. Present when the value of
643 // error_code is MIGRATION_DONE. 672 // error_code is MIGRATION_DONE.
644 repeated int32 migrated_data_type_id = 12; 673 repeated int32 migrated_data_type_id = 12;
645 }; 674 };
646 675
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698