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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.h

Issue 2780463002: Introduce blink::Script (Closed)
Patch Set: Rebase Created 3 years, 8 months 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Script.h ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29ac44f543375399cfd91fa5880da9e0a3e5a87e..1aa042e4071a352296d0f786d2a284e8fb07ef15 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h
@@ -32,9 +32,8 @@
namespace blink {
-class LocalFrame;
class ScriptElementBase;
-class ScriptSourceCode;
+class Script;
class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
public PendingScriptClient {
@@ -73,7 +72,7 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
PendingScript* CreatePendingScript();
// Returns false if and only if execution was blocked.
- bool ExecuteScript(const ScriptSourceCode&);
+ bool ExecuteScript(const Script*);
virtual void Execute();
// XML parser calls these
@@ -128,12 +127,11 @@ class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
private:
bool IgnoresLoadRequest() const;
bool IsScriptForEventSupported() const;
- void LogScriptMIMEType(LocalFrame*, ScriptResource*, const String&);
bool FetchScript(const String& source_url,
const String& encoding,
FetchParameters::DeferOption);
- bool DoExecuteScript(const ScriptSourceCode&);
+ bool DoExecuteScript(const Script*);
// Clears the connection to the PendingScript.
void DetachPendingScript();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Script.h ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698