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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 TYPE_CUSTOM_TAB = 3; // A custom tab within an app. Not restored | 47 TYPE_CUSTOM_TAB = 3; // A custom tab within an app. Not restored |
48 // automatically on sync startup. | 48 // automatically on sync startup. |
49 } | 49 } |
50 optional BrowserType browser_type = 3 [default = TYPE_TABBED]; | 50 optional BrowserType browser_type = 3 [default = TYPE_TABBED]; |
51 // The tabs that compose a window (correspond to tab id's). | 51 // The tabs that compose a window (correspond to tab id's). |
52 repeated int32 tab = 4; | 52 repeated int32 tab = 4; |
53 } | 53 } |
54 | 54 |
55 message SessionTab { | 55 message SessionTab { |
56 // Unique (to the owner) id for this tab. | 56 // Unique (to the owner) id for this tab. |
57 optional int32 tab_id = 1; | 57 optional int32 tab_id = 1 [default = -1]; |
58 // The unique id for the window this tab belongs to. | 58 // The unique id for the window this tab belongs to. |
59 optional int32 window_id = 2; | 59 optional int32 window_id = 2; |
60 // Visual index of the tab within its window. There may be gaps in these | 60 // Visual index of the tab within its window. There may be gaps in these |
61 // values. | 61 // values. |
62 optional int32 tab_visual_index = 3 [default = -1]; | 62 optional int32 tab_visual_index = 3 [default = -1]; |
63 // Identifies the index of the current navigation in navigations. For | 63 // Identifies the index of the current navigation in navigations. For |
64 // example, if this is 2 it means the current navigation is navigations[2]. | 64 // example, if this is 2 it means the current navigation is navigations[2]. |
65 optional int32 current_navigation_index = 4 [default = -1]; | 65 optional int32 current_navigation_index = 4 [default = -1]; |
66 // True if the tab is pinned. | 66 // True if the tab is pinned. |
67 optional bool pinned = 5 [default = false]; | 67 optional bool pinned = 5 [default = false]; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 156 } |
157 // Whether the Password Manager saw a password field on the page. | 157 // Whether the Password Manager saw a password field on the page. |
158 optional PasswordState password_state = 26; | 158 optional PasswordState password_state = 26; |
159 } | 159 } |
160 | 160 |
161 // Navigation information for a single redirection within a single navigation. | 161 // Navigation information for a single redirection within a single navigation. |
162 message NavigationRedirect { | 162 message NavigationRedirect { |
163 // A URL that redirected while navigating to the virtual_url. | 163 // A URL that redirected while navigating to the virtual_url. |
164 optional string url = 1; | 164 optional string url = 1; |
165 } | 165 } |
OLD | NEW |