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/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( | 75 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( |
76 FrameTreeNode* frame_tree_node, | 76 FrameTreeNode* frame_tree_node, |
77 const GURL& dest_url, | 77 const GURL& dest_url, |
78 const Referrer& dest_referrer, | 78 const Referrer& dest_referrer, |
79 const FrameNavigationEntry& frame_entry, | 79 const FrameNavigationEntry& frame_entry, |
80 const NavigationEntryImpl& entry, | 80 const NavigationEntryImpl& entry, |
81 FrameMsg_Navigate_Type::Value navigation_type, | 81 FrameMsg_Navigate_Type::Value navigation_type, |
82 PreviewsState previews_state, | 82 PreviewsState previews_state, |
83 bool is_same_document_history_load, | 83 bool is_same_document_history_load, |
84 bool is_history_navigation_in_new_child, | 84 bool is_history_navigation_in_new_child, |
| 85 const scoped_refptr<ResourceRequestBodyImpl>& post_body, |
85 const base::TimeTicks& navigation_start, | 86 const base::TimeTicks& navigation_start, |
86 NavigationControllerImpl* controller); | 87 NavigationControllerImpl* controller); |
87 | 88 |
88 // Creates a request for a renderer-intiated navigation. | 89 // Creates a request for a renderer-intiated navigation. |
89 // Note: |body| is sent to the IO thread when calling BeginNavigation, and | 90 // Note: |body| is sent to the IO thread when calling BeginNavigation, and |
90 // should no longer be manipulated afterwards on the UI thread. | 91 // should no longer be manipulated afterwards on the UI thread. |
91 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid | 92 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid |
92 // threading subtleties. | 93 // threading subtleties. |
93 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( | 94 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( |
94 FrameTreeNode* frame_tree_node, | 95 FrameTreeNode* frame_tree_node, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 mojo::ScopedDataPipeConsumerHandle handle_; | 256 mojo::ScopedDataPipeConsumerHandle handle_; |
256 | 257 |
257 base::Closure on_start_checks_complete_closure_; | 258 base::Closure on_start_checks_complete_closure_; |
258 | 259 |
259 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 260 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
260 }; | 261 }; |
261 | 262 |
262 } // namespace content | 263 } // namespace content |
263 | 264 |
264 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 265 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |