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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h

Issue 2751023005: DevTools: expose linkPreload bit on the network request (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h b/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h
index 71eb3e82c73bd70229db965f3b87c90297d32ebd..5cbccb8e2a94cc5f639c182e1ca2ebfdfb0fe8ca 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h
@@ -105,8 +105,10 @@ class PLATFORM_EXPORT FetchRequest {
double preloadDiscoveryTime() { return m_preloadDiscoveryTime; }
- bool isLinkPreload() const { return m_linkPreload; }
- void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
+ bool isLinkPreload() const { return m_options.initiatorInfo.isLinkPreload; }
+ void setLinkPreload(bool isLinkPreload) {
+ m_options.initiatorInfo.isLinkPreload = isLinkPreload;
+ }
void setContentSecurityCheck(
ContentSecurityPolicyDisposition contentSecurityPolicyOption) {
@@ -157,7 +159,6 @@ class PLATFORM_EXPORT FetchRequest {
String m_charset;
ResourceLoaderOptions m_options;
bool m_speculativePreload;
- bool m_linkPreload;
double m_preloadDiscoveryTime;
DeferOption m_defer;
OriginRestriction m_originRestriction;

Powered by Google App Engine
This is Rietveld 408576698