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

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

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 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 | « Source/core/fetch/Resource.h ('k') | Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/Resource.cpp
diff --git a/Source/core/fetch/Resource.cpp b/Source/core/fetch/Resource.cpp
index ff898e2a129f2decc402aee403328c16bf45330b..7d81c12fe0ca030d382669682cf831d8efc35e98 100644
--- a/Source/core/fetch/Resource.cpp
+++ b/Source/core/fetch/Resource.cpp
@@ -938,6 +938,8 @@ static const char* initatorTypeNameToString(const AtomicString& initiatorTypeNam
return "Internal resource";
if (initiatorTypeName == FetchInitiatorTypeNames::link)
return "Link element resource";
+ if (initiatorTypeName == FetchInitiatorTypeNames::manifest)
+ return "Manifest";
if (initiatorTypeName == FetchInitiatorTypeNames::processinginstruction)
return "Processing instruction";
if (initiatorTypeName == FetchInitiatorTypeNames::texttrack)
@@ -979,6 +981,8 @@ const char* Resource::resourceTypeToString(Type type, const FetchInitiatorInfo&
return "Imported resource";
case Resource::Media:
return "Media";
+ case Resource::Manifest:
+ return "Manifest";
}
ASSERT_NOT_REACHED();
return initatorTypeNameToString(initiatorInfo.name);
@@ -1014,6 +1018,8 @@ const char* ResourceTypeName(Resource::Type type)
return "ImportResource";
case Resource::Media:
return "Media";
+ case Resource::Manifest:
+ return "Manifest";
}
ASSERT_NOT_REACHED();
return "Unknown";
« no previous file with comments | « Source/core/fetch/Resource.h ('k') | Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698