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

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

Issue 2732853003: [preload] Split up media into video, audio and track (Closed)
Patch Set: Added a test that media fails 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/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 5ec551969b5076932235602689e420de4380cfca..cea7c353d4cccce0c6caff5645dd494c3a9e604d 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -194,8 +194,12 @@ WTF::Optional<Resource::Type> LinkLoader::getResourceTypeFromAsAttribute(
return Resource::Script;
} else if (as == "style") {
return Resource::CSSStyleSheet;
- } else if (as == "media") {
+ } else if (as == "video") {
return Resource::Media;
+ } else if (as == "audio") {
+ return Resource::Media;
+ } else if (as == "track") {
droger 2017/03/23 12:47:26 drive-by: this code is duplicated on line 205 belo
Yoav Weiss 2017/03/23 13:57:54 oops!
+ return Resource::TextTrack;
} else if (as == "font") {
return Resource::Font;
} else if (as == "track") {

Powered by Google App Engine
This is Rietveld 408576698