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

Unified Diff: third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() 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 1e92508dad413ec2426d7e184c7913ef25959fd7..8eb1699ed608a67ff3dd730c59a61d3fde466e31 100644
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
@@ -5,13 +5,13 @@
#ifndef MockFetchContext_h
#define MockFetchContext_h
+#include <memory>
#include "platform/loader/fetch/FetchContext.h"
#include "platform/loader/fetch/FetchParameters.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"
namespace blink {
@@ -73,6 +73,9 @@ class MockFetchContext : public FetchContext {
const ResourceTimingInfo& resource_timing_info) override {
transfer_size_ = resource_timing_info.TransferSize();
}
+ std::unique_ptr<WebURLLoader> CreateURLLoader() override {
+ return Platform::Current()->CreateURLLoader();
+ }
private:
MockFetchContext(LoadPolicy load_policy, RefPtr<WebTaskRunner> task_runner)

Powered by Google App Engine
This is Rietveld 408576698