| 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;
|
|
|