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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 // These next items are used in browser-initiated navigations to store | 224 // These next items are used in browser-initiated navigations to store |
225 // information from the NavigationEntryImpl that is required after request | 225 // information from the NavigationEntryImpl that is required after request |
226 // creation time. | 226 // creation time. |
227 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 227 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
228 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 228 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
229 NavigationEntryImpl::RestoreType restore_type_; | 229 NavigationEntryImpl::RestoreType restore_type_; |
230 bool is_view_source_; | 230 bool is_view_source_; |
231 int bindings_; | 231 int bindings_; |
232 | 232 |
| 233 // This is kept to be sent to the renderer on commit. |
| 234 scoped_refptr<ResourceRequestBody> post_data_; |
| 235 |
233 // The type of SiteInstance associated with this navigation. | 236 // The type of SiteInstance associated with this navigation. |
234 AssociatedSiteInstanceType associated_site_instance_type_; | 237 AssociatedSiteInstanceType associated_site_instance_type_; |
235 | 238 |
236 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 239 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
237 | 240 |
238 // Holds the ResourceResponse and the StreamHandle for the navigation while | 241 // Holds the ResourceResponse and the StreamHandle for the navigation while |
239 // the WillProcessResponse checks are performed by the NavigationHandle. | 242 // the WillProcessResponse checks are performed by the NavigationHandle. |
240 scoped_refptr<ResourceResponse> response_; | 243 scoped_refptr<ResourceResponse> response_; |
241 std::unique_ptr<StreamHandle> body_; | 244 std::unique_ptr<StreamHandle> body_; |
242 | 245 |
243 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 246 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
244 }; | 247 }; |
245 | 248 |
246 } // namespace content | 249 } // namespace content |
247 | 250 |
248 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 251 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |