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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoader.cpp

Issue 2486193002: HTMLImport preload support
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/LinkLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
index 1c535034b50cdec01cd03c462d3da1c181234a90..f06a9f1aed2e1ca311b7f608de75df1f8de2c095 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -197,6 +197,10 @@ bool LinkLoader::getResourceTypeFromAsAttribute(const String& as,
type = Resource::Font;
} else if (as == "track") {
type = Resource::TextTrack;
+ } else if (as == "import") {
+ // This is a non-specced, proprietary value and we should not ship this
+ // without previous discussion!!!!
+ type = Resource::ImportResource;
} else {
type = Resource::Raw;
if (!as.isEmpty())
@@ -225,6 +229,7 @@ void LinkLoader::createLinkPreloadResourceClient(Resource* resource) {
m_linkPreloadResourceClient =
LinkPreloadFontResourceClient::create(this, toFontResource(resource));
break;
+ case Resource::ImportResource:
case Resource::Media:
case Resource::TextTrack:
case Resource::Raw:
@@ -253,6 +258,7 @@ static bool isSupportedType(Resource::Type resourceType,
return MIMETypeRegistry::isSupportedMediaMIMEType(mimeType, String());
case Resource::TextTrack:
return MIMETypeRegistry::isSupportedTextTrackMIMEType(mimeType);
+ case Resource::ImportResource:
case Resource::Raw:
return true;
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698