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

Unified Diff: chrome/browser/prerender/prerender_resource_throttle.h

Issue 2566163002: [PlzNavigate] Add load flags for prefetch navigations (Closed)
Patch Set: Review comments Created 4 years 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: chrome/browser/prerender/prerender_resource_throttle.h
diff --git a/chrome/browser/prerender/prerender_resource_throttle.h b/chrome/browser/prerender/prerender_resource_throttle.h
index f0143ea0e8a9e8036d9e12a0c353aa752ca108f7..5dfd64497b8092f3b0a5a06d2cd6d8159c3b0185 100644
--- a/chrome/browser/prerender/prerender_resource_throttle.h
+++ b/chrome/browser/prerender/prerender_resource_throttle.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/common/prerender_types.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/resource_throttle.h"
#include "content/public/common/resource_type.h"
@@ -83,7 +84,11 @@ class PrerenderResourceThrottle
const content::ResourceRequestInfo::WebContentsGetter&
web_contents_getter);
+ // Sets the prerender mode. Must be called befor ResumeHandler().
clamy 2016/12/23 12:33:32 nit:s/befor/before
+ void SetPrerenderMode(PrerenderMode mode);
+
net::URLRequest* request_;
+ int load_flags_; // Load flags to be OR'ed with the existing request flags.
scoped_refptr<PrerenderThrottleInfo> prerender_throttle_info_;

Powered by Google App Engine
This is Rietveld 408576698