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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/browser/frame_host/navigation_entry_impl.h" | 11 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 12 #include "content/browser/frame_host/navigation_handle_impl.h" |
12 #include "content/browser/loader/navigation_url_loader_delegate.h" | 13 #include "content/browser/loader/navigation_url_loader_delegate.h" |
13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
14 #include "content/common/frame_message_enums.h" | 15 #include "content/common/frame_message_enums.h" |
15 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
16 #include "content/public/browser/navigation_throttle.h" | 17 #include "content/public/browser/navigation_throttle.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class FrameNavigationEntry; | 21 class FrameNavigationEntry; |
21 class FrameTreeNode; | 22 class FrameTreeNode; |
22 class NavigationControllerImpl; | 23 class NavigationControllerImpl; |
23 class NavigationHandleImpl; | |
24 class NavigationURLLoader; | 24 class NavigationURLLoader; |
25 class NavigatorDelegate; | 25 class NavigatorDelegate; |
26 class ResourceRequestBody; | 26 class ResourceRequestBody; |
27 class SiteInstanceImpl; | 27 class SiteInstanceImpl; |
28 struct NavigationRequestInfo; | 28 struct NavigationRequestInfo; |
29 | 29 |
30 // PlzNavigate | 30 // PlzNavigate |
31 // A UI thread object that owns a navigation request until it commits. It | 31 // A UI thread object that owns a navigation request until it commits. It |
32 // ensures the UI thread can start a navigation request in the | 32 // ensures the UI thread can start a navigation request in the |
33 // ResourceDispatcherHost (that lives on the IO thread). | 33 // ResourceDispatcherHost (that lives on the IO thread). |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 void OnRequestRedirected( | 152 void OnRequestRedirected( |
153 const net::RedirectInfo& redirect_info, | 153 const net::RedirectInfo& redirect_info, |
154 const scoped_refptr<ResourceResponse>& response) override; | 154 const scoped_refptr<ResourceResponse>& response) override; |
155 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, | 155 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, |
156 scoped_ptr<StreamHandle> body) override; | 156 scoped_ptr<StreamHandle> body) override; |
157 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; | 157 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; |
158 void OnRequestStarted(base::TimeTicks timestamp) override; | 158 void OnRequestStarted(base::TimeTicks timestamp) override; |
159 | 159 |
160 // Called when the NavigationThrottles have been checked by the | 160 // Called when the NavigationThrottles have been checked by the |
161 // NavigationHandle. | 161 // NavigationHandle. |
162 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 162 void OnStartChecksComplete( |
163 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 163 NavigationThrottle::ThrottleCheckResult result, |
| 164 const NavigationHandleImpl::ExtraHeadersList& extra_headers_list); |
| 165 void OnRedirectChecksComplete( |
| 166 NavigationThrottle::ThrottleCheckResult result, |
| 167 const NavigationHandleImpl::ExtraHeadersList& extra_headers_list); |
164 | 168 |
165 FrameTreeNode* frame_tree_node_; | 169 FrameTreeNode* frame_tree_node_; |
166 | 170 |
167 // Initialized on creation of the NavigationRequest. Sent to the renderer when | 171 // Initialized on creation of the NavigationRequest. Sent to the renderer when |
168 // the navigation is ready to commit. | 172 // the navigation is ready to commit. |
169 // Note: When the navigation is ready to commit, the url in |common_params| | 173 // Note: When the navigation is ready to commit, the url in |common_params| |
170 // will be set to the final navigation url, obtained after following all | 174 // will be set to the final navigation url, obtained after following all |
171 // redirects. | 175 // redirects. |
172 // Note: |common_params_| and |begin_params_| are not const as they can be | 176 // Note: |common_params_| and |begin_params_| are not const as they can be |
173 // modified during redirects. | 177 // modified during redirects. |
(...skipping 23 matching lines...) Expand all Loading... |
197 int bindings_; | 201 int bindings_; |
198 | 202 |
199 scoped_ptr<NavigationHandleImpl> navigation_handle_; | 203 scoped_ptr<NavigationHandleImpl> navigation_handle_; |
200 | 204 |
201 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 205 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
202 }; | 206 }; |
203 | 207 |
204 } // namespace content | 208 } // namespace content |
205 | 209 |
206 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 210 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |