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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2249913003: Remove blink::Resource::Type::LinkPrefetch and replace it by a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 96c1129075a39e2484a4907b38b952ff3223b79b..f6b90a0df25964394224c326938a5da14c029844 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -1071,8 +1071,6 @@ const char* Resource::resourceTypeToString(Type type, const FetchInitiatorInfo&
return "SVG document";
case Resource::XSLStyleSheet:
return "XSL stylesheet";
- case Resource::LinkPrefetch:
- return "Link prefetch resource";
case Resource::LinkPreload:
return "Link preload resource";
case Resource::TextTrack:
@@ -1095,6 +1093,9 @@ bool Resource::shouldBlockLoadEvent() const
bool Resource::isLoadEventBlockingResourceType() const
{
+ if (isPrefetch())
+ return false;
+
switch (m_type) {
case Resource::MainResource:
case Resource::Image:
@@ -1106,7 +1107,6 @@ bool Resource::isLoadEventBlockingResourceType() const
case Resource::ImportResource:
return true;
case Resource::Raw:
- case Resource::LinkPrefetch:
case Resource::LinkPreload:
case Resource::TextTrack:
case Resource::Media:
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698