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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( | 76 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( |
77 FrameTreeNode* frame_tree_node, | 77 FrameTreeNode* frame_tree_node, |
78 const GURL& dest_url, | 78 const GURL& dest_url, |
79 const Referrer& dest_referrer, | 79 const Referrer& dest_referrer, |
80 const FrameNavigationEntry& frame_entry, | 80 const FrameNavigationEntry& frame_entry, |
81 const NavigationEntryImpl& entry, | 81 const NavigationEntryImpl& entry, |
82 FrameMsg_Navigate_Type::Value navigation_type, | 82 FrameMsg_Navigate_Type::Value navigation_type, |
83 PreviewsState previews_state, | 83 PreviewsState previews_state, |
84 bool is_same_document_history_load, | 84 bool is_same_document_history_load, |
85 bool is_history_navigation_in_new_child, | 85 bool is_history_navigation_in_new_child, |
86 const scoped_refptr<ResourceRequestBodyImpl>& post_body, | 86 const scoped_refptr<ResourceRequestBody>& post_body, |
87 const base::TimeTicks& navigation_start, | 87 const base::TimeTicks& navigation_start, |
88 NavigationControllerImpl* controller); | 88 NavigationControllerImpl* controller); |
89 | 89 |
90 // Creates a request for a renderer-intiated navigation. | 90 // Creates a request for a renderer-intiated navigation. |
91 // Note: |body| is sent to the IO thread when calling BeginNavigation, and | 91 // Note: |body| is sent to the IO thread when calling BeginNavigation, and |
92 // should no longer be manipulated afterwards on the UI thread. | 92 // should no longer be manipulated afterwards on the UI thread. |
93 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid | 93 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid |
94 // threading subtleties. | 94 // threading subtleties. |
95 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( | 95 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( |
96 FrameTreeNode* frame_tree_node, | 96 FrameTreeNode* frame_tree_node, |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 mojom::URLLoaderFactoryPtrInfo subresource_loader_factory_info_; | 294 mojom::URLLoaderFactoryPtrInfo subresource_loader_factory_info_; |
295 | 295 |
296 base::WeakPtrFactory<NavigationRequest> weak_factory_; | 296 base::WeakPtrFactory<NavigationRequest> weak_factory_; |
297 | 297 |
298 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 298 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
299 }; | 299 }; |
300 | 300 |
301 } // namespace content | 301 } // namespace content |
302 | 302 |
303 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 303 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |