| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual Document* document() const override; | 23 virtual Document* document() const override; |
| 24 virtual bool isDone() const override; | 24 virtual bool isDone() const override; |
| 25 virtual void stateWillChange() override; | 25 virtual void stateWillChange() override; |
| 26 virtual void stateDidChange() override; | 26 virtual void stateDidChange() override; |
| 27 | 27 |
| 28 void scheduleRecalcState(); | 28 void scheduleRecalcState(); |
| 29 | 29 |
| 30 HTMLImportChild* add(PassOwnPtr<HTMLImportChild>); | 30 HTMLImportChild* add(PassOwnPtr<HTMLImportChild>); |
| 31 HTMLImportChild* find(const KURL&) const; | 31 HTMLImportChild* find(const KURL&) const; |
| 32 | 32 |
| 33 virtual void trace(Visitor*) override; | |
| 34 | |
| 35 private: | 33 private: |
| 36 explicit HTMLImportTreeRoot(Document*); | 34 explicit HTMLImportTreeRoot(Document*); |
| 37 | 35 |
| 38 void recalcTimerFired(Timer<HTMLImportTreeRoot>*); | 36 void recalcTimerFired(Timer<HTMLImportTreeRoot>*); |
| 39 | 37 |
| 40 RawPtr<Document> m_document; | 38 RawPtr<Document> m_document; |
| 41 Timer<HTMLImportTreeRoot> m_recalcTimer; | 39 Timer<HTMLImportTreeRoot> m_recalcTimer; |
| 42 | 40 |
| 43 // List of import which has been loaded or being loaded. | 41 // List of import which has been loaded or being loaded. |
| 44 typedef Vector<OwnPtr<HTMLImportChild> > ImportList; | 42 typedef Vector<OwnPtr<HTMLImportChild> > ImportList; |
| 45 ImportList m_imports; | 43 ImportList m_imports; |
| 46 }; | 44 }; |
| 47 | 45 |
| 48 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo
rt.isRoot()); | 46 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo
rt.isRoot()); |
| 49 | 47 |
| 50 } | 48 } |
| 51 | 49 |
| 52 #endif | 50 #endif |
| OLD | NEW |