| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // TODO(clamy): See if it is possible to reuse this in | 142 // TODO(clamy): See if it is possible to reuse this in |
| 143 // ResourceMsg_Request_Params. | 143 // ResourceMsg_Request_Params. |
| 144 BeginNavigationParams(); | 144 BeginNavigationParams(); |
| 145 BeginNavigationParams( | 145 BeginNavigationParams( |
| 146 std::string headers, | 146 std::string headers, |
| 147 int load_flags, | 147 int load_flags, |
| 148 bool has_user_gesture, | 148 bool has_user_gesture, |
| 149 bool skip_service_worker, | 149 bool skip_service_worker, |
| 150 RequestContextType request_context_type, | 150 RequestContextType request_context_type, |
| 151 blink::WebMixedContentContextType mixed_content_context_type, | 151 blink::WebMixedContentContextType mixed_content_context_type, |
| 152 bool is_form_submission, |
| 152 const base::Optional<url::Origin>& initiator_origin); | 153 const base::Optional<url::Origin>& initiator_origin); |
| 153 BeginNavigationParams(const BeginNavigationParams& other); | 154 BeginNavigationParams(const BeginNavigationParams& other); |
| 154 ~BeginNavigationParams(); | 155 ~BeginNavigationParams(); |
| 155 | 156 |
| 156 // Additional HTTP request headers. | 157 // Additional HTTP request headers. |
| 157 std::string headers; | 158 std::string headers; |
| 158 | 159 |
| 159 // net::URLRequest load flags (net::LOAD_NORMAL) by default). | 160 // net::URLRequest load flags (net::LOAD_NORMAL) by default). |
| 160 int load_flags; | 161 int load_flags; |
| 161 | 162 |
| 162 // True if the request was user initiated. | 163 // True if the request was user initiated. |
| 163 bool has_user_gesture; | 164 bool has_user_gesture; |
| 164 | 165 |
| 165 // True if the ServiceWorker should be skipped. | 166 // True if the ServiceWorker should be skipped. |
| 166 bool skip_service_worker; | 167 bool skip_service_worker; |
| 167 | 168 |
| 168 // Indicates the request context type. | 169 // Indicates the request context type. |
| 169 RequestContextType request_context_type; | 170 RequestContextType request_context_type; |
| 170 | 171 |
| 171 // The mixed content context type for potential mixed content checks. | 172 // The mixed content context type for potential mixed content checks. |
| 172 blink::WebMixedContentContextType mixed_content_context_type; | 173 blink::WebMixedContentContextType mixed_content_context_type; |
| 173 | 174 |
| 175 // Whether or not the navigation has been initiated by a form submission. |
| 176 bool is_form_submission; |
| 177 |
| 174 // See WebSearchableFormData for a description of these. | 178 // See WebSearchableFormData for a description of these. |
| 175 GURL searchable_form_url; | 179 GURL searchable_form_url; |
| 176 std::string searchable_form_encoding; | 180 std::string searchable_form_encoding; |
| 177 | 181 |
| 178 // Indicates the initiator of the request. In auxilliary navigations, this is | 182 // Indicates the initiator of the request. In auxilliary navigations, this is |
| 179 // the origin of the document that triggered the navigation. This parameter | 183 // the origin of the document that triggered the navigation. This parameter |
| 180 // can be null during browser-initiated navigations. | 184 // can be null during browser-initiated navigations. |
| 181 base::Optional<url::Origin> initiator_origin; | 185 base::Optional<url::Origin> initiator_origin; |
| 182 | 186 |
| 183 // If the transition type is a client side redirect, then this holds the URL | 187 // 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... |
| 372 ~NavigationParams(); | 376 ~NavigationParams(); |
| 373 | 377 |
| 374 CommonNavigationParams common_params; | 378 CommonNavigationParams common_params; |
| 375 StartNavigationParams start_params; | 379 StartNavigationParams start_params; |
| 376 RequestNavigationParams request_params; | 380 RequestNavigationParams request_params; |
| 377 }; | 381 }; |
| 378 | 382 |
| 379 } // namespace content | 383 } // namespace content |
| 380 | 384 |
| 381 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 385 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |