| Index: Source/core/dom/ScriptLoader.h
|
| diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h
|
| index 83acaecfe4232ca1ae616b63374408bee8f075bd..ff8784ebd67484e2c23364bca22a7388ae832a37 100644
|
| --- a/Source/core/dom/ScriptLoader.h
|
| +++ b/Source/core/dom/ScriptLoader.h
|
| @@ -30,6 +30,7 @@ namespace WebCore {
|
|
|
| class ScriptResource;
|
| class ContainerNode;
|
| +class Document;
|
| class Element;
|
| class ScriptLoaderClient;
|
| class ScriptSourceCode;
|
| @@ -71,6 +72,7 @@ public:
|
| void childrenChanged();
|
| void handleSourceAttribute(const String& sourceUrl);
|
| void handleAsyncAttribute();
|
| + void cancel(Document* contextDocument);
|
|
|
| private:
|
| ScriptLoader(Element*, bool createdByParser, bool isEvaluated);
|
| @@ -86,6 +88,13 @@ private:
|
| // ResourceClient
|
| virtual void notifyFinished(Resource*) OVERRIDE;
|
|
|
| + enum FinishType {
|
| + FinishSuccessfully,
|
| + FinishWithErrorOrCancel
|
| + };
|
| +
|
| + void finishLoading(Document* contextDocument, FinishType);
|
| +
|
| Element* m_element;
|
| ResourcePtr<ScriptResource> m_resource;
|
| WTF::OrdinalNumber m_startLineNumber;
|
|
|