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_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // modified during redirects. | 202 // modified during redirects. |
203 // Note: |request_params_| is not const because service_worker_provider_id | 203 // Note: |request_params_| is not const because service_worker_provider_id |
204 // and should_create_service_worker will be set in OnResponseStarted. | 204 // and should_create_service_worker will be set in OnResponseStarted. |
205 CommonNavigationParams common_params_; | 205 CommonNavigationParams common_params_; |
206 BeginNavigationParams begin_params_; | 206 BeginNavigationParams begin_params_; |
207 RequestNavigationParams request_params_; | 207 RequestNavigationParams request_params_; |
208 const bool browser_initiated_; | 208 const bool browser_initiated_; |
209 | 209 |
210 NavigationState state_; | 210 NavigationState state_; |
211 | 211 |
212 | |
213 std::unique_ptr<NavigationURLLoader> loader_; | 212 std::unique_ptr<NavigationURLLoader> loader_; |
214 | 213 |
215 // These next items are used in browser-initiated navigations to store | 214 // These next items are used in browser-initiated navigations to store |
216 // information from the NavigationEntryImpl that is required after request | 215 // information from the NavigationEntryImpl that is required after request |
217 // creation time. | 216 // creation time. |
218 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 217 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
219 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 218 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
220 RestoreType restore_type_; | 219 RestoreType restore_type_; |
221 bool is_view_source_; | 220 bool is_view_source_; |
222 int bindings_; | 221 int bindings_; |
223 | 222 |
224 // The type of SiteInstance associated with this navigation. | 223 // The type of SiteInstance associated with this navigation. |
225 AssociatedSiteInstanceType associated_site_instance_type_; | 224 AssociatedSiteInstanceType associated_site_instance_type_; |
226 | 225 |
227 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 226 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
228 | 227 |
229 // Holds the ResourceResponse and the StreamHandle for the navigation while | 228 // Holds the ResourceResponse and the StreamHandle for the navigation while |
230 // the WillProcessResponse checks are performed by the NavigationHandle. | 229 // the WillProcessResponse checks are performed by the NavigationHandle. |
231 scoped_refptr<ResourceResponse> response_; | 230 scoped_refptr<ResourceResponse> response_; |
232 std::unique_ptr<StreamHandle> body_; | 231 std::unique_ptr<StreamHandle> body_; |
233 | 232 |
234 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 233 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
235 }; | 234 }; |
236 | 235 |
237 } // namespace content | 236 } // namespace content |
238 | 237 |
239 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 238 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |