Chromium Code Reviews| Index: content/browser/frame_host/navigation_handle_impl.h |
| diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h |
| index 192cdab3348d3d9dc0bd3ff51c92aa625f7e1ae7..bca71243343199e88bd566dca374ced72523909a 100644 |
| --- a/content/browser/frame_host/navigation_handle_impl.h |
| +++ b/content/browser/frame_host/navigation_handle_impl.h |
| @@ -160,6 +160,15 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
| scoped_refptr<net::HttpResponseHeaders> response_headers, |
| const ThrottleChecksFinishedCallback& callback); |
| + // Called when the URLRequest has response data, and is ready to be |
| + // committed. |callback| will be called if the throttle checks indicate |
| + // that the request should be cancelled. Otherwise, 'ReadyToCommitNavigation' |
| + // will be called. |
|
clamy
2016/01/18 17:45:32
Well the callback should also be called in the cur
Mike West
2016/01/20 18:45:39
Yup. Comment is stale, hopefully this update is be
|
| + void WillProcessResponse( |
| + RenderFrameHostImpl* render_frame_host, |
| + scoped_refptr<net::HttpResponseHeaders> response_headers, |
| + const ThrottleChecksFinishedCallback& callback); |
| + |
| // Returns the FrameTreeNode this navigation is happening in. |
| FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| @@ -201,6 +210,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
| NavigationThrottle::ThrottleCheckResult CheckWillStartRequest(); |
| NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); |
| + NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); |
| // Helper function to run and reset the |complete_callback_|. This marks the |
| // end of a round of NavigationThrottleChecks. |