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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/RawResource.h

Issue 2701753003: [WIP] off-main-thread loading
Patch Set: small fix Created 3 years, 8 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/platform/loader/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/RawResource.h b/third_party/WebKit/Source/platform/loader/fetch/RawResource.h
index bebff434ed2c138c9b1a73e5ee8dd517fb4edc68..7d7f4022c0043091b91927072c86bf75470cddfb 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/RawResource.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/RawResource.h
@@ -31,6 +31,7 @@
#include "public/platform/WebDataConsumerHandle.h"
namespace blink {
+class FetchContext;
class FetchRequest;
class RawResourceClient;
class ResourceFetcher;
@@ -52,7 +53,7 @@ class PLATFORM_EXPORT RawResource final : public Resource {
// Exposed for testing
static RawResource* create(const ResourceRequest& request, Type type) {
- return new RawResource(request, type, ResourceLoaderOptions());
+ return new RawResource(request, type, ResourceLoaderOptions(), nullptr);
}
// FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and
@@ -73,12 +74,16 @@ class PLATFORM_EXPORT RawResource final : public Resource {
Resource* create(const ResourceRequest& request,
const ResourceLoaderOptions& options,
- const String& charset) const override {
- return new RawResource(request, m_type, options);
+ const String& charset,
+ FetchContext* fetchContext) const override {
+ return new RawResource(request, m_type, options, fetchContext);
}
};
- RawResource(const ResourceRequest&, Type, const ResourceLoaderOptions&);
+ RawResource(const ResourceRequest&,
+ Type,
+ const ResourceLoaderOptions&,
+ FetchContext*);
// Resource implementation
void didAddClient(ResourceClient*) override;

Powered by Google App Engine
This is Rietveld 408576698