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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 void CreateNavigationHandle(int pending_nav_entry_id); | 152 void CreateNavigationHandle(int pending_nav_entry_id); |
153 | 153 |
154 // Transfers the ownership of the NavigationHandle to |render_frame_host|. | 154 // Transfers the ownership of the NavigationHandle to |render_frame_host|. |
155 // This should be called when the navigation is ready to commit, because the | 155 // This should be called when the navigation is ready to commit, because the |
156 // NavigationHandle outlives the NavigationRequest. The NavigationHandle's | 156 // NavigationHandle outlives the NavigationRequest. The NavigationHandle's |
157 // lifetime is the entire navigation, while the NavigationRequest is | 157 // lifetime is the entire navigation, while the NavigationRequest is |
158 // destroyed when a navigation is ready for commit. | 158 // destroyed when a navigation is ready for commit. |
159 void TransferNavigationHandleOwnership( | 159 void TransferNavigationHandleOwnership( |
160 RenderFrameHostImpl* render_frame_host); | 160 RenderFrameHostImpl* render_frame_host); |
161 | 161 |
162 // Resets the POST data for the navigation. This is called when encoutering a | |
163 // cross-site redirect. | |
164 void ResetPostData(); | |
Charlie Reis
2016/05/11 00:00:23
Lukasz found some useful info on this in the spec
clamy
2016/05/11 08:54:41
Removed the function, since the current behavior c
| |
165 | |
162 private: | 166 private: |
163 NavigationRequest(FrameTreeNode* frame_tree_node, | 167 NavigationRequest(FrameTreeNode* frame_tree_node, |
164 const CommonNavigationParams& common_params, | 168 const CommonNavigationParams& common_params, |
165 const BeginNavigationParams& begin_params, | 169 const BeginNavigationParams& begin_params, |
166 const RequestNavigationParams& request_params, | 170 const RequestNavigationParams& request_params, |
167 scoped_refptr<ResourceRequestBody> body, | 171 scoped_refptr<ResourceRequestBody> body, |
168 bool browser_initiated, | 172 bool browser_initiated, |
169 const FrameNavigationEntry* frame_navigation_entry, | 173 const FrameNavigationEntry* frame_navigation_entry, |
170 const NavigationEntryImpl* navitation_entry); | 174 const NavigationEntryImpl* navitation_entry); |
171 | 175 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 | 223 |
220 // These next items are used in browser-initiated navigations to store | 224 // These next items are used in browser-initiated navigations to store |
221 // information from the NavigationEntryImpl that is required after request | 225 // information from the NavigationEntryImpl that is required after request |
222 // creation time. | 226 // creation time. |
223 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 227 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
224 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 228 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
225 NavigationEntryImpl::RestoreType restore_type_; | 229 NavigationEntryImpl::RestoreType restore_type_; |
226 bool is_view_source_; | 230 bool is_view_source_; |
227 int bindings_; | 231 int bindings_; |
228 | 232 |
233 // This is kept to be sent to the renderer on commit. | |
234 scoped_refptr<ResourceRequestBody> post_data_; | |
235 | |
229 // The type of SiteInstance associated with this navigation. | 236 // The type of SiteInstance associated with this navigation. |
230 AssociatedSiteInstanceType associated_site_instance_type_; | 237 AssociatedSiteInstanceType associated_site_instance_type_; |
231 | 238 |
232 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 239 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
233 | 240 |
234 // Holds the ResourceResponse and the StreamHandle for the navigation while | 241 // Holds the ResourceResponse and the StreamHandle for the navigation while |
235 // the WillProcessResponse checks are performed by the NavigationHandle. | 242 // the WillProcessResponse checks are performed by the NavigationHandle. |
236 scoped_refptr<ResourceResponse> response_; | 243 scoped_refptr<ResourceResponse> response_; |
237 std::unique_ptr<StreamHandle> body_; | 244 std::unique_ptr<StreamHandle> body_; |
238 | 245 |
239 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 246 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
240 }; | 247 }; |
241 | 248 |
242 } // namespace content | 249 } // namespace content |
243 | 250 |
244 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 251 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |