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

Unified Diff: third_party/WebKit/Source/platform/loader/testing/MockFetchContext.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/testing/MockFetchContext.h
diff --git a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
index 79292d7670c19d30b8ede7ca4a70ee7e82262e2a..827d9298a9f1290c7916e812afb442d541df5d63 100644
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
@@ -5,13 +5,14 @@
#ifndef MockFetchContext_h
#define MockFetchContext_h
+#include <memory>
#include "platform/loader/fetch/FetchContext.h"
#include "platform/loader/fetch/FetchRequest.h"
#include "platform/loader/fetch/ResourceTimingInfo.h"
#include "platform/scheduler/test/fake_web_task_runner.h"
#include "platform/wtf/PtrUtil.h"
-
-#include <memory>
+#include "public/platform/Platform.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -63,6 +64,9 @@ class MockFetchContext : public FetchContext {
const ResourceTimingInfo& resourceTimingInfo) override {
m_transferSize = resourceTimingInfo.transferSize();
}
+ WebURLLoader* createURLLoader() override {
+ return Platform::current()->createURLLoader();
+ }
private:
MockFetchContext(LoadPolicy loadPolicy, RefPtr<WebTaskRunner> taskRunner)

Powered by Google App Engine
This is Rietveld 408576698