| Index: content/public/browser/navigation_handle.h
|
| diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
|
| index 24a500ff82b6d3859511ed8ea76a99b5f228291f..e4e2e1472159f76b3224f4c7adb925e0d79443ed 100644
|
| --- a/content/public/browser/navigation_handle.h
|
| +++ b/content/public/browser/navigation_handle.h
|
| @@ -125,7 +125,11 @@ class CONTENT_EXPORT NavigationHandle {
|
| virtual net::Error GetNetErrorCode() = 0;
|
|
|
| // Returns the RenderFrameHost this navigation is taking place in. This can
|
| - // only be accessed after the navigation is ready to commit.
|
| + // only be accessed after the navigation starts processing the response.
|
| + // The RenderFrameHost returned back might not be the final one, because the
|
| + // navigation may transfer so final RenderFrameHost is not available before
|
| + // DidFinishNavigation.
|
| + // If PlzNavigate is enabled, then RenderFrameHost is final.
|
| virtual RenderFrameHost* GetRenderFrameHost() = 0;
|
|
|
| // Whether the navigation happened in the same page. This is only known
|
| @@ -187,6 +191,10 @@ class CONTENT_EXPORT NavigationHandle {
|
| const GURL& new_referrer_url,
|
| bool new_is_external_protocol) = 0;
|
|
|
| + // Simulates that throttle is about to process the response.
|
| + virtual NavigationThrottle::ThrottleCheckResult
|
| + CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0;
|
| +
|
| // The NavigationData that the embedder returned from
|
| // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
|
| // be a clone of the NavigationData.
|
|
|