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

Unified Diff: third_party/WebKit/public/platform/WebURLRequest.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
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebURLRequest.h
diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
index 45a8a860cf1ce7ca402fe7813b21e10f1109396c..5ed0d34d5982bf538d570639f497d717a8a3b404 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -101,7 +101,8 @@ public:
FrameTypeAuxiliary,
FrameTypeNested,
FrameTypeNone,
- FrameTypeTopLevel
+ FrameTypeTopLevel,
+ FrameTypePreload
};
enum FetchRequestMode {
@@ -281,6 +282,9 @@ public:
BLINK_PLATFORM_EXPORT LoFiState getLoFiState() const;
BLINK_PLATFORM_EXPORT void setLoFiState(LoFiState);
+ // Is the request triggered by a link preload?
+ BLINK_PLATFORM_EXPORT bool linkPreload() const;
+
// Extra data associated with the underlying resource request. Resource
// requests can be copied. If non-null, each copy of a resource requests
// holds a pointer to the extra data, and the extra data pointer will be
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698