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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 enum BlockedState { | 127 enum BlockedState { |
128 STATE_ALLOWED = 1; | 128 STATE_ALLOWED = 1; |
129 STATE_BLOCKED = 2; | 129 STATE_BLOCKED = 2; |
130 } | 130 } |
131 // Whether access to the URL was allowed or blocked. | 131 // Whether access to the URL was allowed or blocked. |
132 optional BlockedState blocked_state = 18 [default=STATE_ALLOWED]; | 132 optional BlockedState blocked_state = 18 [default=STATE_ALLOWED]; |
133 // A list of category identifiers for the URL. | 133 // A list of category identifiers for the URL. |
134 repeated string content_pack_categories = 19; | 134 repeated string content_pack_categories = 19; |
135 // The status code from the last navigation. | 135 // The status code from the last navigation. |
136 optional int32 http_status_code = 20; | 136 optional int32 http_status_code = 20; |
| 137 |
137 // Referrer policy. Valid enums are defined in | 138 // Referrer policy. Valid enums are defined in |
138 // third_party/WebKit/public/platform/WebReferrerPolicy.h. | 139 // third_party/WebKit/public/platform/WebReferrerPolicy.h. |
139 optional int32 referrer_policy = 21 [default = 1]; | 140 optional int32 referrer_policy = 21 [default = 1]; |
140 // True if created from restored navigation entry that hasn't been loaded. | 141 // True if created from restored navigation entry that hasn't been loaded. |
141 optional bool is_restored = 22; | 142 optional bool is_restored = 22; |
| 143 // The chain of redirections for this navigation, from the original URL |
| 144 // through the last URL that redirected. |
| 145 repeated NavigationRedirect navigation_redirect = 23; |
| 146 // Normally not present. |
| 147 // The last URL traversed when different from the virtual_url. |
| 148 optional string last_navigation_redirect_url = 24; |
142 } | 149 } |
| 150 |
| 151 // Navigation information for a single redirection within a single navigation. |
| 152 message NavigationRedirect { |
| 153 // A URL that redirected while navigating to the virtual_url. |
| 154 optional string url = 1; |
| 155 } |
OLD | NEW |