Chromium Code Reviews| 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..e07515277786743d126bb9355f358b85e1bdbf89 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* keep(PassOwnPtr<HTMLImportChild>); |
|
Hajime Morrita
2014/05/28 20:42:34
Let's just append() or add() instead of keep()-ing
|
| + 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()); |