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

Unified Diff: Source/core/html/LinkImport.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/html/HTMLLinkElement.cpp ('k') | Source/core/html/LinkImport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkImport.h
diff --git a/Source/core/html/LinkImport.h b/Source/core/html/LinkImport.h
index 57a6a412360923fc8242c9ab9609601bcb65e75e..4003f88525e0553eb48c0bec0c8c073eb50e84bd 100644
--- a/Source/core/html/LinkImport.h
+++ b/Source/core/html/LinkImport.h
@@ -31,6 +31,7 @@
#ifndef LinkImport_h
#define LinkImport_h
+#include "core/html/HTMLImportLoaderClient.h"
#include "core/html/LinkResource.h"
#include "wtf/FastAllocBase.h"
#include "wtf/RefPtr.h"
@@ -43,7 +44,7 @@ class HTMLImportLoader;
//
// A LinkResource subclasss used for @rel=import.
//
-class LinkImport : public LinkResource {
+class LinkImport : public LinkResource, public HTMLImportLoaderClient {
WTF_MAKE_FAST_ALLOCATED;
public:
@@ -56,10 +57,16 @@ public:
virtual void process() OVERRIDE;
virtual Type type() const OVERRIDE { return Import; }
virtual void ownerRemoved() OVERRIDE;
+ virtual bool hasLoaded() const OVERRIDE;
+
+ // HTMLImportLoaderClient
+ virtual void didFinish() OVERRIDE;
Document* importedDocument() const;
private:
+ void clear();
+
RefPtr<HTMLImportLoader> m_loader;
};
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | Source/core/html/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698