Chromium Code Reviews| 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/macros.h" | 8 #include "base/macros.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" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 const scoped_refptr<ResourceResponse>& response) override; | 157 const scoped_refptr<ResourceResponse>& response) override; |
| 158 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, | 158 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, |
| 159 scoped_ptr<StreamHandle> body) override; | 159 scoped_ptr<StreamHandle> body) override; |
| 160 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; | 160 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; |
| 161 void OnRequestStarted(base::TimeTicks timestamp) override; | 161 void OnRequestStarted(base::TimeTicks timestamp) override; |
| 162 | 162 |
| 163 // Called when the NavigationThrottles have been checked by the | 163 // Called when the NavigationThrottles have been checked by the |
| 164 // NavigationHandle. | 164 // NavigationHandle. |
| 165 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 165 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); |
| 166 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 166 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); |
| 167 void OnWillProcessResponseChecksComplete( | |
| 168 NavigationThrottle::ThrottleCheckResult result); | |
| 169 | |
| 170 // Has a RenderFrameHost commit the navigation. The NavigationRequest will be | |
|
nasko
2016/03/18 21:51:43
nit: s/Has/Have/
clamy
2016/03/23 14:36:44
Done.
| |
| 171 // destroyed after this call. | |
| 172 void CommitNavigation(); | |
| 167 | 173 |
| 168 // Called when the navigation is about to be sent to the IO thread. | 174 // Called when the navigation is about to be sent to the IO thread. |
| 169 void InitializeServiceWorkerHandleIfNeeded(); | 175 void InitializeServiceWorkerHandleIfNeeded(); |
| 170 | 176 |
| 171 FrameTreeNode* frame_tree_node_; | 177 FrameTreeNode* frame_tree_node_; |
| 172 | 178 |
| 173 // Initialized on creation of the NavigationRequest. Sent to the renderer when | 179 // Initialized on creation of the NavigationRequest. Sent to the renderer when |
| 174 // the navigation is ready to commit. | 180 // the navigation is ready to commit. |
| 175 // Note: When the navigation is ready to commit, the url in |common_params| | 181 // Note: When the navigation is ready to commit, the url in |common_params| |
| 176 // will be set to the final navigation url, obtained after following all | 182 // will be set to the final navigation url, obtained after following all |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 197 // information from the NavigationEntryImpl that is required after request | 203 // information from the NavigationEntryImpl that is required after request |
| 198 // creation time. | 204 // creation time. |
| 199 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 205 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
| 200 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 206 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
| 201 NavigationEntryImpl::RestoreType restore_type_; | 207 NavigationEntryImpl::RestoreType restore_type_; |
| 202 bool is_view_source_; | 208 bool is_view_source_; |
| 203 int bindings_; | 209 int bindings_; |
| 204 | 210 |
| 205 scoped_ptr<NavigationHandleImpl> navigation_handle_; | 211 scoped_ptr<NavigationHandleImpl> navigation_handle_; |
| 206 | 212 |
| 213 // Holds the ResourceResponse and the StreamHandle for the navigation while | |
| 214 // the WillProcessResponse checks are performed by the NavigationHandle. | |
| 215 scoped_refptr<ResourceResponse> response_; | |
| 216 scoped_ptr<StreamHandle> body_; | |
| 217 | |
| 207 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 218 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 208 }; | 219 }; |
| 209 | 220 |
| 210 } // namespace content | 221 } // namespace content |
| 211 | 222 |
| 212 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 223 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |