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

Unified Diff: Source/core/html/HTMLImportLoader.h

Issue 22573005: [HTML Imports] Implement "load" and "error" events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 4 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 | « Source/core/core.gypi ('k') | Source/core/html/HTMLImportLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698