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

Unified Diff: Source/core/html/HTMLImport.h

Issue 18467003: Refactoring: Introduce HTMLImport interface to form import tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 5 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
Index: Source/core/html/HTMLImport.h
diff --git a/Source/core/platform/Partitions.h b/Source/core/html/HTMLImport.h
similarity index 83%
copy from Source/core/platform/Partitions.h
copy to Source/core/html/HTMLImport.h
index 56be59a1bacb75083e4af69d17fb3c97e09a0d51..a31c3d32c795aaa002a2f7f24597dc7fa73b33c0 100644
--- a/Source/core/platform/Partitions.h
+++ b/Source/core/html/HTMLImport.h
@@ -28,24 +28,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Partitions_h
-#define Partitions_h
-
-#include "wtf/PartitionAlloc.h"
+#ifndef HTMLImport_h
+#define HTMLImport_h
namespace WebCore {
-class Partitions {
+class Document;
+class HTMLImportsController;
+
+class HTMLImport {
public:
- static void init();
- static void shutdown();
+ virtual ~HTMLImport() { }
- ALWAYS_INLINE static PartitionRoot* getObjectModelPartition() { return &m_objectModelRoot; }
+ bool haveChildrenLoaded();
-private:
- static PartitionRoot m_objectModelRoot;
+ virtual HTMLImportsController* controller() = 0;
+ virtual HTMLImport* parent() = 0;
+ virtual Document* document() = 0;
};
} // namespace WebCore
-#endif // Partitions_h
+#endif // HTMLImport_h

Powered by Google App Engine
This is Rietveld 408576698