| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HTMLImportTreeRoot_h | 5 #ifndef HTMLImportTreeRoot_h |
| 6 #define HTMLImportTreeRoot_h | 6 #define HTMLImportTreeRoot_h |
| 7 | 7 |
| 8 #include "core/html/imports/HTMLImport.h" | 8 #include "core/html/imports/HTMLImport.h" |
| 9 #include "platform/Timer.h" | 9 #include "platform/Timer.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class HTMLImportChild; | 14 class HTMLImportChild; |
| 15 class KURL; |
| 15 | 16 |
| 16 class HTMLImportTreeRoot : public HTMLImport { | 17 class HTMLImportTreeRoot : public HTMLImport { |
| 17 public: | 18 public: |
| 18 static PassOwnPtrWillBeRawPtr<HTMLImportTreeRoot> create(Document*); | 19 static PassOwnPtrWillBeRawPtr<HTMLImportTreeRoot> create(Document*); |
| 19 | 20 |
| 20 virtual ~HTMLImportTreeRoot(); | 21 virtual ~HTMLImportTreeRoot(); |
| 21 | 22 |
| 22 // HTMLImport | 23 // HTMLImport |
| 23 virtual Document* document() const OVERRIDE; | 24 virtual Document* document() const OVERRIDE; |
| 24 virtual bool isDone() const OVERRIDE; | 25 virtual bool isDone() const OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 43 // List of import which has been loaded or being loaded. | 44 // List of import which has been loaded or being loaded. |
| 44 typedef WillBeHeapVector<OwnPtrWillBeMember<HTMLImportChild> > ImportList; | 45 typedef WillBeHeapVector<OwnPtrWillBeMember<HTMLImportChild> > ImportList; |
| 45 ImportList m_imports; | 46 ImportList m_imports; |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo
rt.isRoot()); | 49 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo
rt.isRoot()); |
| 49 | 50 |
| 50 } | 51 } |
| 51 | 52 |
| 52 #endif | 53 #endif |
| OLD | NEW |