| Index: third_party/WebKit/Source/core/dom/ScriptLoader.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.h b/third_party/WebKit/Source/core/dom/ScriptLoader.h
|
| index 1aa042e4071a352296d0f786d2a284e8fb07ef15..82263badfe65819a22318efb0005492fb8b88f26 100644
|
| --- a/third_party/WebKit/Source/core/dom/ScriptLoader.h
|
| +++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h
|
| @@ -26,14 +26,15 @@
|
| #include "core/dom/ScriptRunner.h"
|
| #include "core/loader/resource/ScriptResource.h"
|
| #include "platform/loader/fetch/FetchParameters.h"
|
| -#include "platform/loader/fetch/ResourceClient.h"
|
| #include "platform/wtf/text/TextPosition.h"
|
| #include "platform/wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
|
|
| -class ScriptElementBase;
|
| class Script;
|
| +class ScriptElementBase;
|
| +class ScriptResource;
|
| +class ModulePendingScriptTreeClient;
|
|
|
| class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
|
| public PendingScriptClient {
|
| @@ -94,6 +95,7 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
|
| bool IsParserInserted() const { return parser_inserted_; }
|
| bool AlreadyStarted() const { return already_started_; }
|
| bool IsNonBlocking() const { return non_blocking_; }
|
| + ScriptType GetScriptType() const { return script_type_; }
|
|
|
| // Helper functions used by our parent classes.
|
| void DidNotifySubtreeInsertionsToDocument();
|
| @@ -163,7 +165,8 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
|
| bool ready_to_be_parser_executed_ = false;
|
|
|
| // https://html.spec.whatwg.org/#concept-script-type
|
| - // TODO(hiroshige): Implement "script's type".
|
| + // "It is determined when the script is prepared"
|
| + ScriptType script_type_ = ScriptType::kClassic;
|
|
|
| // https://html.spec.whatwg.org/#concept-script-external
|
| // "It is determined when the script is prepared"
|
| @@ -195,6 +198,7 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
|
| DocumentWriteIntervention document_write_intervention_;
|
|
|
| Member<PendingScript> pending_script_;
|
| + Member<ModulePendingScriptTreeClient> module_tree_client_;
|
| };
|
|
|
| } // namespace blink
|
|
|