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

Unified Diff: third_party/WebKit/Source/core/dom/Modulator.h

Issue 2790473002: [ES6 modules] Introduce ScriptModuleResolverImpl (Closed)
Patch Set: error impl / unit test 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/Modulator.h
diff --git a/third_party/WebKit/Source/core/dom/Modulator.h b/third_party/WebKit/Source/core/dom/Modulator.h
index 22517c73622907a69f17327d9a7ead0d4a4545aa..360eb50aa5c34be97faa0b3a04e15a0a7fe4d8d5 100644
--- a/third_party/WebKit/Source/core/dom/Modulator.h
+++ b/third_party/WebKit/Source/core/dom/Modulator.h
@@ -51,6 +51,10 @@ class CORE_EXPORT Modulator : public GarbageCollectedFinalized<Modulator> {
virtual ReferrerPolicy referrerPolicy() = 0;
virtual SecurityOrigin* securityOrigin() = 0;
+ // Synchronously retrieves a single module script from existing module map
+ // entry.
+ virtual ModuleScript* getFetchedModuleScript(const KURL&) = 0;
+
// https://html.spec.whatwg.org/#resolve-a-module-specifier
static KURL resolveModuleSpecifier(const String& moduleRequest,
const KURL& baseURL);

Powered by Google App Engine
This is Rietveld 408576698