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