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

Unified Diff: Source/core/dom/PendingScript.h

Issue 551293002: Refactor PendingScript / HTMLScriptRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PendingScript.h
diff --git a/Source/core/dom/PendingScript.h b/Source/core/dom/PendingScript.h
index 9425382303d6c8c1afd2e9a219d20f33e82214c6..77f87faf4d53d4657b09529445bf98cf795a31e9 100644
--- a/Source/core/dom/PendingScript.h
+++ b/Source/core/dom/PendingScript.h
@@ -26,6 +26,7 @@
#ifndef PendingScript_h
#define PendingScript_h
+#include "bindings/core/v8/ScriptSourceCode.h"
#include "core/dom/Element.h"
#include "core/fetch/ResourceClient.h"
#include "core/fetch/ResourceOwner.h"
@@ -87,8 +88,8 @@ public:
TextPosition startingPosition() const { return m_startingPosition; }
void setStartingPosition(const TextPosition& position) { m_startingPosition = position; }
- bool watchingForLoad() const { return m_watchingForLoad; }
- void setWatchingForLoad(bool b) { m_watchingForLoad = b; }
+ void watchForLoad(ResourceClient*);
+ void stopWatchingForLoad(ResourceClient*);
Element* element() const { return m_element.get(); }
void setElement(Element* element) { m_element = element; }
@@ -100,6 +101,8 @@ public:
void trace(Visitor*);
+ ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) const;
+
private:
bool m_watchingForLoad;
RefPtrWillBeMember<Element> m_element;
« no previous file with comments | « no previous file | Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698