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..54d830e70da8d248ac4aaa239097b50d87118a6a 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 when the throttles' checks are |
+ // complete. If the result is PROCEED, 'ReadyToCommitNavigation' will be |
+ // called just before |callback|. |
+ 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. |