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

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

Issue 1564913003: [DevTools] Shows Manifest file in Sources tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update network-toggle-type-filter-actual.txt Created 4 years, 11 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/core/fetch/RawResource.h ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/RawResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.cpp b/third_party/WebKit/Source/core/fetch/RawResource.cpp
index 43a181957e130bde084cc926768bc91030be0ea3..0419b11e254db24715f992ae1e6de990a6189757 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/RawResource.cpp
@@ -79,6 +79,13 @@ ResourcePtr<RawResource> RawResource::fetchTextTrack(FetchRequest& request, Reso
return toRawResource(fetcher->requestResource(request, RawResourceFactory(Resource::TextTrack)));
}
+ResourcePtr<RawResource> RawResource::fetchManifest(FetchRequest& request, ResourceFetcher* fetcher)
+{
+ ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
+ ASSERT(request.resourceRequest().requestContext() == WebURLRequest::RequestContextManifest);
+ return toRawResource(fetcher->requestResource(request, RawResourceFactory(Resource::Manifest)));
+}
+
RawResource::RawResource(const ResourceRequest& resourceRequest, Type type)
: Resource(resourceRequest, type)
{
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.h ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698