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

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

Issue 2697073002: [ES6 modules] Introduce ModuleScriptLoader (Closed)
Patch Set: rebased Created 3 years, 9 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/BUILD.gn ('k') | third_party/WebKit/Source/core/loader/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 393d25578540187f9140b21e28b4067e116a18f0..353c99511ea9f0a7798fa42629f7b07dd88e6e44 100644
--- a/third_party/WebKit/Source/core/dom/Modulator.h
+++ b/third_party/WebKit/Source/core/dom/Modulator.h
@@ -8,6 +8,8 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
+#include "platform/weborigin/ReferrerPolicy.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -15,7 +17,9 @@ class LocalFrame;
class ModuleScript;
class ModuleScriptFetchRequest;
class ModuleScriptLoaderClient;
+class ScriptModule;
class ScriptModuleResolver;
+class SecurityOrigin;
class WebTaskRunner;
// A SingleModuleClient is notified when single module script node (node as in a
@@ -41,11 +45,16 @@ class CORE_EXPORT Modulator : public GarbageCollectedMixin {
virtual ScriptModuleResolver* scriptModuleResolver() = 0;
virtual WebTaskRunner* taskRunner() = 0;
+ virtual ReferrerPolicy referrerPolicy() = 0;
+ virtual SecurityOrigin* securityOrigin() = 0;
// https://html.spec.whatwg.org/#resolve-a-module-specifier
static KURL resolveModuleSpecifier(const String& moduleRequest,
const KURL& baseURL);
+ virtual ScriptModule compileModule(const String& script,
+ const String& urlStr) = 0;
+
private:
friend class ModuleMap;
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/loader/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698