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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchRequest.h

Issue 2249913003: Remove blink::Resource::Type::LinkPrefetch and replace it by a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index fda9bdf1ab6ed323684a8ac1739183281ef556fb..b2a3b6509016eeafcbd9b0c07968ea35d6ab710f 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -87,6 +87,9 @@ public:
bool isLinkPreload() { return m_linkPreload; }
void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
+ bool isPrefetch() const { return m_isPrefetch; }
+ void setIsPrefetch(bool isPrefetch) { m_isPrefetch = isPrefetch; }
+
void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurityPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
void setCrossOriginAccessControl(SecurityOrigin*, CrossOriginAttributeValue);
OriginRestriction getOriginRestriction() const { return m_originRestriction; }
@@ -105,6 +108,7 @@ private:
ResourceLoaderOptions m_options;
bool m_forPreload;
bool m_linkPreload;
+ bool m_isPrefetch;
double m_preloadDiscoveryTime;
DeferOption m_defer;
OriginRestriction m_originRestriction;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698