| OLD | NEW |
| 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 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"; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 optional int32 tab_node_id = 4 [default = -1]; | 26 optional int32 tab_node_id = 4 [default = -1]; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // Properties of session sync objects. | 29 // Properties of session sync objects. |
| 30 message SessionHeader { | 30 message SessionHeader { |
| 31 // Each session is composed of windows. | 31 // Each session is composed of windows. |
| 32 repeated SessionWindow window = 2; | 32 repeated SessionWindow window = 2; |
| 33 // A non-unique but human-readable name to describe this client. | 33 // A non-unique but human-readable name to describe this client. |
| 34 optional string client_name = 3; | 34 optional string client_name = 3; |
| 35 // The type of device. | 35 // The type of device. |
| 36 enum DeviceType { | 36 optional SyncEnums.DeviceType device_type = 4; |
| 37 TYPE_WIN = 1; | |
| 38 TYPE_MAC = 2; | |
| 39 TYPE_LINUX = 3; | |
| 40 TYPE_CROS = 4; | |
| 41 TYPE_OTHER = 5; | |
| 42 TYPE_PHONE = 6; | |
| 43 TYPE_TABLET = 7; | |
| 44 } | |
| 45 optional DeviceType device_type = 4; | |
| 46 } | 37 } |
| 47 | 38 |
| 48 message SessionWindow { | 39 message SessionWindow { |
| 49 // Unique (to the owner) id for this window. | 40 // Unique (to the owner) id for this window. |
| 50 optional int32 window_id = 1; | 41 optional int32 window_id = 1; |
| 51 // Index of the selected tab in tabs; -1 if no tab is selected. | 42 // Index of the selected tab in tabs; -1 if no tab is selected. |
| 52 optional int32 selected_tab_index = 2 [default = -1]; | 43 optional int32 selected_tab_index = 2 [default = -1]; |
| 53 // Type of the browser. Currently we only store browsers of type | 44 // Type of the browser. Currently we only store browsers of type |
| 54 // TYPE_TABBED and TYPE_POPUP. | 45 // TYPE_TABBED and TYPE_POPUP. |
| 55 enum BrowserType { | 46 enum BrowserType { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // User used the address bar to trigger this navigation. | 110 // User used the address bar to trigger this navigation. |
| 120 optional bool navigation_from_address_bar = 11; | 111 optional bool navigation_from_address_bar = 11; |
| 121 // User is navigating to the home page. | 112 // User is navigating to the home page. |
| 122 optional bool navigation_home_page = 12; | 113 optional bool navigation_home_page = 12; |
| 123 // The beginning of a navigation chain. | 114 // The beginning of a navigation chain. |
| 124 optional bool navigation_chain_start = 13; | 115 optional bool navigation_chain_start = 13; |
| 125 // The last transition in a redirect chain. | 116 // The last transition in a redirect chain. |
| 126 optional bool navigation_chain_end = 14; | 117 optional bool navigation_chain_end = 14; |
| 127 } | 118 } |
| 128 | 119 |
| OLD | NEW |