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

Unified Diff: Source/core/html/imports/HTMLImportTreeRoot.h

Issue 305723004: Make HTMLImportTreeNode own the whole import tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed. Created 6 years, 7 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/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportTreeRoot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportTreeRoot.h
diff --git a/Source/core/html/imports/HTMLImportTreeRoot.h b/Source/core/html/imports/HTMLImportTreeRoot.h
index e8774a6b82fffcde98e3d509203070a402f130e7..51ef54a299f31e3b20b5f3752b43a211252b7c42 100644
--- a/Source/core/html/imports/HTMLImportTreeRoot.h
+++ b/Source/core/html/imports/HTMLImportTreeRoot.h
@@ -11,10 +11,14 @@
namespace WebCore {
+class HTMLImportChild;
+
class HTMLImportTreeRoot : public HTMLImport {
public:
static PassOwnPtr<HTMLImportTreeRoot> create(Document*);
+ virtual ~HTMLImportTreeRoot();
+
// HTMLImport
virtual Document* document() const OVERRIDE;
virtual bool isDone() const OVERRIDE;
@@ -23,6 +27,9 @@ public:
void scheduleRecalcState();
+ HTMLImportChild* add(PassOwnPtr<HTMLImportChild>);
+ HTMLImportChild* find(const KURL&) const;
+
private:
explicit HTMLImportTreeRoot(Document*);
@@ -30,6 +37,10 @@ private:
Document* m_document;
Timer<HTMLImportTreeRoot> m_recalcTimer;
+
+ // List of import which has been loaded or being loaded.
+ typedef Vector<OwnPtr<HTMLImportChild> > ImportList;
+ ImportList m_imports;
};
DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), import.isRoot());
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportTreeRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698