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

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

Issue 2826903002: [ES6 modules] Integrate ModuleTreeLinkerRegistry into ModulatorImpl back-plane (Closed)
Patch Set: rebased 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModulatorImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dbf2f2457c8df0ca01bc0505e40ba6e80bdbd5c3..b41d3a4038568b5a5c0940a95339b1d9484e49ce 100644
--- a/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
+++ b/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
@@ -13,6 +13,7 @@
#include "core/frame/LocalFrame.h"
#include "core/loader/modulescript/ModuleScriptFetchRequest.h"
#include "core/loader/modulescript/ModuleScriptLoaderRegistry.h"
+#include "core/loader/modulescript/ModuleTreeLinkerRegistry.h"
#include "platform/loader/fetch/ResourceFetcher.h"
namespace blink {
@@ -33,6 +34,7 @@ ModulatorImpl::ModulatorImpl(RefPtr<ScriptState> script_state,
fetcher_(fetcher),
map_(this, ModuleMap::Create(this)),
loader_registry_(ModuleScriptLoaderRegistry::Create()),
+ tree_linker_registry_(ModuleTreeLinkerRegistry::Create()),
script_module_resolver_(ScriptModuleResolverImpl::Create(this)) {
DCHECK(script_state_);
DCHECK(task_runner_);
@@ -75,7 +77,7 @@ void ModulatorImpl::FetchTreeInternal(const ModuleScriptFetchRequest& request,
const AncestorList& ancestor_list,
ModuleGraphLevel level,
ModuleTreeClient* client) {
- NOTIMPLEMENTED();
+ tree_linker_registry_->Fetch(request, ancestor_list, level, this, client);
}
void ModulatorImpl::FetchSingle(const ModuleScriptFetchRequest& request,
@@ -141,6 +143,7 @@ DEFINE_TRACE(ModulatorImpl) {
visitor->Trace(fetcher_);
visitor->Trace(map_);
visitor->Trace(loader_registry_);
+ visitor->Trace(tree_linker_registry_);
visitor->Trace(script_module_resolver_);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModulatorImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698