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

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

Issue 7753019: [Sync] Update session protos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix proto conversion Created 9 years, 3 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
« no previous file with comments | « chrome/browser/sync/protocol/proto_value_conversions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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"; 17 import "sync.proto";
18 18
19 message SessionSpecifics { 19 message SessionSpecifics {
20 // Unique id for the client. 20 // Unique id for the client.
21 optional string session_tag = 1; 21 optional string session_tag = 1;
22 optional SessionHeader header = 2; 22 optional SessionHeader header = 2;
23 optional SessionTab tab = 3; 23 optional SessionTab tab = 3;
24 } 24 }
25 // Properties of session sync objects. 25 // Properties of session sync objects.
26 message SessionHeader { 26 message SessionHeader {
27 // Each session is composed of windows. 27 // Each session is composed of windows.
28 repeated SessionWindow window = 2; 28 repeated SessionWindow window = 2;
29 // A non-unique but human-readable name to describe this client.
30 optional string client_name = 3;
31 // The type of device.
32 enum DeviceType {
33 TYPE_PC = 1;
34 TYPE_CROS = 2;
35 }
36 optional DeviceType device_type = 4;
29 } 37 }
30 message SessionWindow { 38 message SessionWindow {
31 // Unique (to the owner) id for this window. 39 // Unique (to the owner) id for this window.
32 optional int32 window_id = 1; 40 optional int32 window_id = 1;
33 // Index of the selected tab in tabs; -1 if no tab is selected. 41 // Index of the selected tab in tabs; -1 if no tab is selected.
34 optional int32 selected_tab_index = 2 [default = -1]; 42 optional int32 selected_tab_index = 2 [default = -1];
35 // Type of the browser. Currently we only store browsers of type 43 // Type of the browser. Currently we only store browsers of type
36 // TYPE_TABBED and TYPE_POPUP. 44 // TYPE_TABBED and TYPE_POPUP.
37 enum BrowserType { 45 enum BrowserType {
38 TYPE_TABBED = 1; 46 TYPE_TABBED = 1;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 CLIENT_REDIRECT = 1; 104 CLIENT_REDIRECT = 1;
97 SERVER_REDIRECT = 2; 105 SERVER_REDIRECT = 2;
98 } 106 }
99 optional PageTransition page_transition = 6 [default = TYPED]; 107 optional PageTransition page_transition = 6 [default = TYPED];
100 optional PageTransitionQualifier navigation_qualifier = 7; 108 optional PageTransitionQualifier navigation_qualifier = 7;
101 } 109 }
102 110
103 extend EntitySpecifics { 111 extend EntitySpecifics {
104 optional SessionSpecifics session = 50119; 112 optional SessionSpecifics session = 50119;
105 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/proto_value_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698