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

Unified Diff: content/browser/frame_host/navigation_request.h

Issue 1811913003: PlzNavigate: support NavigationThrottle::WillProcessResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index b5c43ad56563ca136b86bfd6f7dd29e116af6bc4..0e4731182b97d2e26db1755a3c08bbbf9152a8e9 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -164,6 +164,12 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
// NavigationHandle.
void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
+ void OnWillProcessResponseChecksComplete(
+ NavigationThrottle::ThrottleCheckResult result);
+
+ // 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.
+ // destroyed after this call.
+ void CommitNavigation();
// Called when the navigation is about to be sent to the IO thread.
void InitializeServiceWorkerHandleIfNeeded();
@@ -204,6 +210,11 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
scoped_ptr<NavigationHandleImpl> navigation_handle_;
+ // Holds the ResourceResponse and the StreamHandle for the navigation while
+ // the WillProcessResponse checks are performed by the NavigationHandle.
+ scoped_refptr<ResourceResponse> response_;
+ scoped_ptr<StreamHandle> body_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
};

Powered by Google App Engine
This is Rietveld 408576698