OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // TODO(clamy): See if it is possible to reuse this in | 168 // TODO(clamy): See if it is possible to reuse this in |
169 // ResourceMsg_Request_Params. | 169 // ResourceMsg_Request_Params. |
170 BeginNavigationParams(); | 170 BeginNavigationParams(); |
171 BeginNavigationParams( | 171 BeginNavigationParams( |
172 std::string headers, | 172 std::string headers, |
173 int load_flags, | 173 int load_flags, |
174 bool has_user_gesture, | 174 bool has_user_gesture, |
175 bool skip_service_worker, | 175 bool skip_service_worker, |
176 RequestContextType request_context_type, | 176 RequestContextType request_context_type, |
177 blink::WebMixedContentContextType mixed_content_context_type, | 177 blink::WebMixedContentContextType mixed_content_context_type, |
| 178 bool is_form_submission, |
178 const base::Optional<url::Origin>& initiator_origin); | 179 const base::Optional<url::Origin>& initiator_origin); |
179 BeginNavigationParams(const BeginNavigationParams& other); | 180 BeginNavigationParams(const BeginNavigationParams& other); |
180 ~BeginNavigationParams(); | 181 ~BeginNavigationParams(); |
181 | 182 |
182 // Additional HTTP request headers. | 183 // Additional HTTP request headers. |
183 std::string headers; | 184 std::string headers; |
184 | 185 |
185 // net::URLRequest load flags (net::LOAD_NORMAL) by default). | 186 // net::URLRequest load flags (net::LOAD_NORMAL) by default). |
186 int load_flags; | 187 int load_flags; |
187 | 188 |
188 // True if the request was user initiated. | 189 // True if the request was user initiated. |
189 bool has_user_gesture; | 190 bool has_user_gesture; |
190 | 191 |
191 // True if the ServiceWorker should be skipped. | 192 // True if the ServiceWorker should be skipped. |
192 bool skip_service_worker; | 193 bool skip_service_worker; |
193 | 194 |
194 // Indicates the request context type. | 195 // Indicates the request context type. |
195 RequestContextType request_context_type; | 196 RequestContextType request_context_type; |
196 | 197 |
197 // The mixed content context type for potential mixed content checks. | 198 // The mixed content context type for potential mixed content checks. |
198 blink::WebMixedContentContextType mixed_content_context_type; | 199 blink::WebMixedContentContextType mixed_content_context_type; |
199 | 200 |
| 201 // Whether or not the navigation has been initiated by a form submission. |
| 202 bool is_form_submission; |
| 203 |
200 // See WebSearchableFormData for a description of these. | 204 // See WebSearchableFormData for a description of these. |
201 GURL searchable_form_url; | 205 GURL searchable_form_url; |
202 std::string searchable_form_encoding; | 206 std::string searchable_form_encoding; |
203 | 207 |
204 // Indicates the initiator of the request. In auxilliary navigations, this is | 208 // Indicates the initiator of the request. In auxilliary navigations, this is |
205 // the origin of the document that triggered the navigation. This parameter | 209 // the origin of the document that triggered the navigation. This parameter |
206 // can be null during browser-initiated navigations. | 210 // can be null during browser-initiated navigations. |
207 base::Optional<url::Origin> initiator_origin; | 211 base::Optional<url::Origin> initiator_origin; |
208 | 212 |
209 // If the transition type is a client side redirect, then this holds the URL | 213 // If the transition type is a client side redirect, then this holds the URL |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 ~NavigationParams(); | 402 ~NavigationParams(); |
399 | 403 |
400 CommonNavigationParams common_params; | 404 CommonNavigationParams common_params; |
401 StartNavigationParams start_params; | 405 StartNavigationParams start_params; |
402 RequestNavigationParams request_params; | 406 RequestNavigationParams request_params; |
403 }; | 407 }; |
404 | 408 |
405 } // namespace content | 409 } // namespace content |
406 | 410 |
407 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 411 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |