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

Unified Diff: third_party/WebKit/Source/core/dom/ModulatorImpl.cpp

Issue 2826313003: Worklet: Enable module script loading for main thread worklets (Closed)
Patch Set: rebase 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/core/dom/ModulatorImpl.cpp
diff --git a/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp b/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
index e5e4f35dd77ff0db211c1fd7493f915e670e61ab..c4d65ee603e31c61d69a341ffe6a0b6f77366659 100644
--- a/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
+++ b/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
@@ -19,11 +19,12 @@
namespace blink {
ModulatorImpl* ModulatorImpl::Create(RefPtr<ScriptState> script_state,
- Document& document) {
+ ExecutionContext& execution_context,
+ ResourceFetcher* fetcher) {
return new ModulatorImpl(
std::move(script_state),
- TaskRunnerHelper::Get(TaskType::kNetworking, &document),
- document.Fetcher());
+ TaskRunnerHelper::Get(TaskType::kNetworking, &execution_context),
kouhei (in TOK) 2017/05/01 10:15:32 shouldn't be needed.
nhiroki 2017/05/02 03:54:38 Done.
+ fetcher);
}
ModulatorImpl::ModulatorImpl(RefPtr<ScriptState> script_state,
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModulatorImpl.h ('k') | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698