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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
138 // Referrer policy. Valid enums are defined in | 138 // Referrer policy. Old, broken value. |
139 // third_party/WebKit/public/platform/WebReferrerPolicy.h. | |
140 optional int32 referrer_policy = 21 [default = 1]; | 139 optional int32 referrer_policy = 21 [default = 1]; |
Andrew T Wilson (Slow)
2015/01/29 11:02:13
Should this be named obsolete_referrer_policy?
| |
141 // True if created from restored navigation entry that hasn't been loaded. | 140 // True if created from restored navigation entry that hasn't been loaded. |
142 optional bool is_restored = 22; | 141 optional bool is_restored = 22; |
143 // The chain of redirections for this navigation, from the original URL | 142 // The chain of redirections for this navigation, from the original URL |
144 // through the last URL that redirected. | 143 // through the last URL that redirected. |
145 repeated NavigationRedirect navigation_redirect = 23; | 144 repeated NavigationRedirect navigation_redirect = 23; |
146 // Normally not present. | 145 // Normally not present. |
147 // The last URL traversed when different from the virtual_url. | 146 // The last URL traversed when different from the virtual_url. |
148 optional string last_navigation_redirect_url = 24; | 147 optional string last_navigation_redirect_url = 24; |
148 // Correct referrer policy. Valid enums are defined in | |
149 // third_party/WebKit/public/platform/WebReferrerPolicy.h. | |
150 optional int32 correct_referrer_policy = 25 [default = 1]; | |
149 } | 151 } |
150 | 152 |
151 // Navigation information for a single redirection within a single navigation. | 153 // Navigation information for a single redirection within a single navigation. |
152 message NavigationRedirect { | 154 message NavigationRedirect { |
153 // A URL that redirected while navigating to the virtual_url. | 155 // A URL that redirected while navigating to the virtual_url. |
154 optional string url = 1; | 156 optional string url = 1; |
155 } | 157 } |
OLD | NEW |