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

Side by Side Diff: chrome/browser/sync/protocol/session_specifics.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: fred's review 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 datatype extension for sessions. 5 // Sync protocol datatype extension for sessions.
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 "sync.proto";
18
19 message SessionSpecifics { 17 message SessionSpecifics {
20 // Unique id for the client. 18 // Unique id for the client.
21 optional string session_tag = 1; 19 optional string session_tag = 1;
22 optional SessionHeader header = 2; 20 optional SessionHeader header = 2;
23 optional SessionTab tab = 3; 21 optional SessionTab tab = 3;
24 } 22 }
25 // Properties of session sync objects. 23 // Properties of session sync objects.
26 message SessionHeader { 24 message SessionHeader {
27 // Each session is composed of windows. 25 // Each session is composed of windows.
28 repeated SessionWindow window = 2; 26 repeated SessionWindow window = 2;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 102 }
105 // These qualifiers further define the transition. 103 // These qualifiers further define the transition.
106 enum PageTransitionQualifier { 104 enum PageTransitionQualifier {
107 CLIENT_REDIRECT = 1; 105 CLIENT_REDIRECT = 1;
108 SERVER_REDIRECT = 2; 106 SERVER_REDIRECT = 2;
109 } 107 }
110 optional PageTransition page_transition = 6 [default = TYPED]; 108 optional PageTransition page_transition = 6 [default = TYPED];
111 optional PageTransitionQualifier navigation_qualifier = 7; 109 optional PageTransitionQualifier navigation_qualifier = 7;
112 } 110 }
113 111
114 extend EntitySpecifics {
115 optional SessionSpecifics session = 50119;
116 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/search_engine_specifics.proto ('k') | chrome/browser/sync/protocol/sync.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698