| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/ModuleScript.h" | 5 #include "core/dom/ModuleScript.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptState.h" | |
| 8 #include "bindings/core/v8/ScriptValue.h" | 7 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "core/dom/ScriptModuleResolver.h" | 8 #include "core/dom/ScriptModuleResolver.h" |
| 9 #include "platform/bindings/ScriptState.h" |
| 10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 ModuleScript* ModuleScript::Create( | 14 ModuleScript* ModuleScript::Create( |
| 15 const String& source_text, | 15 const String& source_text, |
| 16 Modulator* modulator, | 16 Modulator* modulator, |
| 17 const KURL& base_url, | 17 const KURL& base_url, |
| 18 const String& nonce, | 18 const String& nonce, |
| 19 ParserDisposition parser_state, | 19 ParserDisposition parser_state, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 void ModuleScript::RunScript(LocalFrame* frame, const SecurityOrigin*) const { | 127 void ModuleScript::RunScript(LocalFrame* frame, const SecurityOrigin*) const { |
| 128 settings_object_->ExecuteModule(this); | 128 settings_object_->ExecuteModule(this); |
| 129 } | 129 } |
| 130 | 130 |
| 131 String ModuleScript::InlineSourceTextForCSP() const { | 131 String ModuleScript::InlineSourceTextForCSP() const { |
| 132 return source_text_; | 132 return source_text_; |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |