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..93437989a95f0930a89f231adfcca97a29f76fd8 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.h |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h |
@@ -24,17 +24,20 @@ |
#include "core/CoreExport.h" |
#include "core/dom/PendingScript.h" |
#include "core/dom/ScriptRunner.h" |
-#include "core/loader/resource/ScriptResource.h" |
-#include "platform/loader/fetch/FetchParameters.h" |
-#include "platform/loader/fetch/ResourceClient.h" |
+#include "core/html/CrossOriginAttribute.h" |
+#include "platform/loader/fetch/ResourceLoaderOptions.h" |
#include "platform/wtf/text/TextPosition.h" |
#include "platform/wtf/text/WTFString.h" |
+#include "public/platform/WebURLRequest.h" |
namespace blink { |
class ScriptElementBase; |
class Script; |
+class ResourceFetcher; |
+class ScriptResource; |
+ |
class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, |
public PendingScriptClient { |
USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); |
@@ -68,7 +71,7 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, |
String ScriptContent() const; |
// Creates a PendingScript for external script whose fetch is started in |
- // fetchScript(). |
+ // FetchClassicScript(). |
PendingScript* CreatePendingScript(); |
// Returns false if and only if execution was blocked. |
@@ -128,9 +131,20 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, |
bool IgnoresLoadRequest() const; |
bool IsScriptForEventSupported() const; |
- bool FetchScript(const String& source_url, |
- const String& encoding, |
- FetchParameters::DeferOption); |
+ // FetchClassicScript corresponds to Step 21.6 of |
+ // https://html.spec.whatwg.org/#prepare-a-script |
+ // and must NOT be called from outside of PendingScript(). |
+ // |
+ // https://html.spec.whatwg.org/#fetch-a-classic-script |
+ bool FetchClassicScript(const KURL&, |
+ ResourceFetcher*, |
+ const String& nonce, |
+ const IntegrityMetadataSet&, |
+ ParserDisposition, |
+ CrossOriginAttributeValue, |
+ SecurityOrigin*, |
+ const String& encoding); |
+ |
bool DoExecuteScript(const Script*); |
// Clears the connection to the PendingScript. |