Chromium Code Reviews| 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..947b769aa78f58f3021e3263b3025b46ec6e750c 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,17 @@ 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); |
| + // TODO(kouhei): script should be a ScriptSourceCode. |
|
hiroshige
2017/03/06 22:20:21
I'm not so sure whether |script| should be a Scrip
kouhei (in TOK)
2017/03/23 00:34:00
Removed for now
|
| + virtual ScriptModule compileModule(const String& script, |
| + const String& urlStr) = 0; |
| + |
| private: |
| friend class ModuleMap; |