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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptController.h

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: ScriptModule interaction refactored to ScriptController Created 4 years 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/bindings/core/v8/ScriptController.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
index 425a2083a11376b342087b1711543274fd77beec..73367b7818c1ef21ec88533097a3ecddb5410545 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
@@ -51,6 +51,7 @@ class Element;
class HTMLDocument;
class KURL;
class ScriptSourceCode;
+class ScriptModule;
class SecurityOrigin;
class WindowProxy;
class Widget;
@@ -113,6 +114,9 @@ class CORE_EXPORT ScriptController final
// Returns true if argument is a JavaScript URL.
bool executeScriptIfJavaScriptURL(const KURL&, Element*);
+ // TODO(kouhei): I think script should be a ScriptSourceCode
+ ScriptModule compileModule(const String& script, const String& urlStr);
+
// Returns true if the current world is isolated, and has its own Content
// Security Policy. In this case, the policy of the main world should be
// ignored when evaluating resources injected into the DOM.

Powered by Google App Engine
This is Rietveld 408576698