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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 }; | 69 }; |
70 | 70 |
71 // Creates a request for a browser-intiated navigation. | 71 // Creates a request for a browser-intiated navigation. |
72 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( | 72 static std::unique_ptr<NavigationRequest> CreateBrowserInitiated( |
73 FrameTreeNode* frame_tree_node, | 73 FrameTreeNode* frame_tree_node, |
74 const GURL& dest_url, | 74 const GURL& dest_url, |
75 const Referrer& dest_referrer, | 75 const Referrer& dest_referrer, |
76 const FrameNavigationEntry& frame_entry, | 76 const FrameNavigationEntry& frame_entry, |
77 const NavigationEntryImpl& entry, | 77 const NavigationEntryImpl& entry, |
78 FrameMsg_Navigate_Type::Value navigation_type, | 78 FrameMsg_Navigate_Type::Value navigation_type, |
79 LoFiState lofi_state, | 79 int previews_state, |
nasko
2016/12/08 22:19:32
PreviewsState
megjablon
2016/12/09 20:35:53
Done.
| |
80 bool is_same_document_history_load, | 80 bool is_same_document_history_load, |
81 bool is_history_navigation_in_new_child, | 81 bool is_history_navigation_in_new_child, |
82 const base::TimeTicks& navigation_start, | 82 const base::TimeTicks& navigation_start, |
83 NavigationControllerImpl* controller); | 83 NavigationControllerImpl* controller); |
84 | 84 |
85 // Creates a request for a renderer-intiated navigation. | 85 // Creates a request for a renderer-intiated navigation. |
86 // Note: |body| is sent to the IO thread when calling BeginNavigation, and | 86 // Note: |body| is sent to the IO thread when calling BeginNavigation, and |
87 // should no longer be manipulated afterwards on the UI thread. | 87 // should no longer be manipulated afterwards on the UI thread. |
88 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid | 88 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid |
89 // threading subtleties. | 89 // threading subtleties. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 // the WillProcessResponse checks are performed by the NavigationHandle. | 230 // the WillProcessResponse checks are performed by the NavigationHandle. |
231 scoped_refptr<ResourceResponse> response_; | 231 scoped_refptr<ResourceResponse> response_; |
232 std::unique_ptr<StreamHandle> body_; | 232 std::unique_ptr<StreamHandle> body_; |
233 | 233 |
234 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 234 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
235 }; | 235 }; |
236 | 236 |
237 } // namespace content | 237 } // namespace content |
238 | 238 |
239 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 239 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |