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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // third_party/WebKit/public/platform/WebReferrerPolicy.h. | 149 // third_party/WebKit/public/platform/WebReferrerPolicy.h. |
150 optional int32 correct_referrer_policy = 25 [default = 1]; | 150 optional int32 correct_referrer_policy = 25 [default = 1]; |
151 | 151 |
152 enum PasswordState { | 152 enum PasswordState { |
153 PASSWORD_STATE_UNKNOWN = 0; | 153 PASSWORD_STATE_UNKNOWN = 0; |
154 NO_PASSWORD_FIELD = 1; | 154 NO_PASSWORD_FIELD = 1; |
155 HAS_PASSWORD_FIELD = 2; | 155 HAS_PASSWORD_FIELD = 2; |
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 |
| 160 // The id for the task associated with this navigation, which is globally |
| 161 // unique with high probability. |
| 162 // Similar with global_id, but used to identify a navigation in Chrome Tasks, |
| 163 // so navigations of a page have the same task_id if one is the first visit of |
| 164 // the page, and others are its back/forward visits. |
| 165 optional int64 task_id = 27; |
| 166 // Task ids of all ancestor navigations, which can be from other tabs, from |
| 167 // root to parent. We define navigation A is parent of navigation B if page of |
| 168 // B is got by clicking a link on page of A. This relationship is used to |
| 169 // define a Chrome Task as a tree rooted by a navigation. |
| 170 repeated int64 ancestor_task_id = 28; |
159 } | 171 } |
160 | 172 |
161 // Navigation information for a single redirection within a single navigation. | 173 // Navigation information for a single redirection within a single navigation. |
162 message NavigationRedirect { | 174 message NavigationRedirect { |
163 // A URL that redirected while navigating to the virtual_url. | 175 // A URL that redirected while navigating to the virtual_url. |
164 optional string url = 1; | 176 optional string url = 1; |
165 } | 177 } |
OLD | NEW |