Index: Source/core/html/HTMLImportLoader.h |
diff --git a/Source/core/html/HTMLImportLoader.h b/Source/core/html/HTMLImportLoader.h |
index 1d89e11459be18ea9327d423625b015b8f1cf6e8..20c9b10007e2d0cc09410941a3864db056aaeac4 100644 |
--- a/Source/core/html/HTMLImportLoader.h |
+++ b/Source/core/html/HTMLImportLoader.h |
@@ -41,6 +41,7 @@ |
namespace WebCore { |
class DocumentWriter; |
+class HTMLImportLoaderClient; |
class HTMLImportLoader : public RefCounted<HTMLImportLoader>, public HTMLImport, public CachedRawResourceClient { |
public: |
@@ -57,8 +58,11 @@ public: |
Document* importedDocument() const; |
const KURL& url() const { return m_url; } |
+ void addClient(HTMLImportLoaderClient*); |
+ void removeClient(HTMLImportLoaderClient*); |
void importDestroyed(); |
bool isDone() const { return m_state == StateReady || m_state == StateError; } |
+ bool isLoaded() const { return m_state == StateReady; } |
// HTMLImport |
virtual HTMLImportRoot* root() OVERRIDE; |
@@ -80,9 +84,10 @@ private: |
State finishParsing(); |
void setState(State); |
- void dispose(); |
+ void didFinish(); |
HTMLImport* m_parent; |
+ Vector<HTMLImportLoaderClient*> m_clients; |
State m_state; |
KURL m_url; |
ResourcePtr<CachedRawResource> m_resource; |