| Index: Source/core/html/imports/HTMLImportLoader.h
|
| diff --git a/Source/core/html/imports/HTMLImportLoader.h b/Source/core/html/imports/HTMLImportLoader.h
|
| index 9ddbf20fc6e75d4d11bd5d36db3ca3e31ac068ea..e14c447a1532ba89d59dd8e5d6b5e9a95d3f5df9 100644
|
| --- a/Source/core/html/imports/HTMLImportLoader.h
|
| +++ b/Source/core/html/imports/HTMLImportLoader.h
|
| @@ -31,6 +31,7 @@
|
| #ifndef HTMLImportLoader_h
|
| #define HTMLImportLoader_h
|
|
|
| +#include "core/dom/DocumentParserClient.h"
|
| #include "core/fetch/RawResource.h"
|
| #include "core/fetch/ResourceOwner.h"
|
| #include "platform/heap/Handle.h"
|
| @@ -53,7 +54,7 @@ class HTMLImportsController;
|
| // HTMLImportLoader is owned by HTMLImportsController.
|
| //
|
| //
|
| -class HTMLImportLoader FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTMLImportLoader>, public ResourceOwner<RawResource> {
|
| +class HTMLImportLoader FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTMLImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient {
|
| public:
|
| enum State {
|
| StateLoading,
|
| @@ -88,9 +89,6 @@ public:
|
| #endif
|
| void startLoading(const ResourcePtr<RawResource>&);
|
|
|
| - // Tells the loader that the parser is done with this import.
|
| - // Called by Document::finishedParsing, after DOMContentLoaded was dispatched.
|
| - void didFinishParsing();
|
| // Tells the loader that all of the import's stylesheets finished
|
| // loading.
|
| // Called by Document::didRemoveAllPendingStylesheet.
|
| @@ -108,6 +106,11 @@ private:
|
| virtual void dataReceived(Resource*, const char* data, int length) OVERRIDE;
|
| virtual void notifyFinished(Resource*) OVERRIDE;
|
|
|
| + // DocumentParserClient
|
| +
|
| + // Called after document parse is complete after DOMContentLoaded was dispatched.
|
| + virtual void notifyParserStopped();
|
| +
|
| State startWritingAndParsing(const ResourceResponse&);
|
| State finishWriting();
|
| State finishParsing();
|
|
|