Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 1811913003: PlzNavigate: support NavigationThrottle::WillProcessResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of 1832803002 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 2bb284d1e86a015d37818ec7e9d589dc1aa4e87a..37a325bdbd7c4a4c52084ef5b1b33cba644a578b 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -205,7 +205,7 @@ void NavigationHandleImpl::Resume() {
// If the navigation is about to proceed after processing the response, then
// it's ready to commit.
if (result == NavigationThrottle::PROCEED)
- ReadyToCommitNavigation(render_frame_host_, response_headers_);
+ ReadyToCommitNavigation(render_frame_host_);
}
if (result != NavigationThrottle::DEFER)
@@ -346,7 +346,7 @@ void NavigationHandleImpl::WillProcessResponse(
// If the navigation is about to proceed, then it's ready to commit.
if (result == NavigationThrottle::PROCEED)
- ReadyToCommitNavigation(render_frame_host, response_headers);
+ ReadyToCommitNavigation(render_frame_host);
// If the navigation is not deferred, run the callback.
if (result != NavigationThrottle::DEFER)
@@ -354,11 +354,9 @@ void NavigationHandleImpl::WillProcessResponse(
}
void NavigationHandleImpl::ReadyToCommitNavigation(
- RenderFrameHostImpl* render_frame_host,
- scoped_refptr<net::HttpResponseHeaders> response_headers) {
+ RenderFrameHostImpl* render_frame_host) {
DCHECK(!render_frame_host_ || render_frame_host_ == render_frame_host);
render_frame_host_ = render_frame_host;
- response_headers_ = response_headers;
state_ = READY_TO_COMMIT;
// Only notify the WebContentsObservers when PlzNavigate is enabled, as
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/browser/frame_host/navigation_handle_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698