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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.h

Issue 1987413002: Add link preload as=document support Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: crash fix Created 4 years, 3 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/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index a43f60754a60f58a79bbd1ccf70706b6f0bdfd83..3de01cfc32dc938b05ef439114c591adc03d7838 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -237,6 +237,9 @@ public:
void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; }
RedirectStatus redirectStatus() const { return m_redirectStatus; }
+ void setLinkPreload(bool isLinkPreload) { m_isLinkPreload = isLinkPreload; }
+ bool linkPreload() const { return m_isLinkPreload; }
+
private:
void initialize(const KURL&);
@@ -258,6 +261,7 @@ private:
bool m_downloadToFile : 1;
bool m_useStreamOnResponse : 1;
bool m_shouldResetAppCache : 1;
+ bool m_isLinkPreload : 1;
WebURLRequest::SkipServiceWorker m_skipServiceWorker;
ResourceLoadPriority m_priority;
int m_intraPriorityValue;
@@ -307,6 +311,7 @@ public:
WebURLRequest::SkipServiceWorker m_skipServiceWorker;
bool m_useStreamOnResponse;
bool m_shouldResetAppCache;
+ bool m_isLinkPreload;
ResourceLoadPriority m_priority;
int m_intraPriorityValue;
int m_requestorID;

Powered by Google App Engine
This is Rietveld 408576698