Index: Source/core/dom/DocumentInitializer.h |
diff --git a/Source/core/dom/DocumentOrderedList.h b/Source/core/dom/DocumentInitializer.h |
similarity index 62% |
copy from Source/core/dom/DocumentOrderedList.h |
copy to Source/core/dom/DocumentInitializer.h |
index 8dde172864e28b463855a252fcc75ff453bc6312..f6f4057b44f8ea5aaf1ea6a3964a231f7cbf19b9 100644 |
--- a/Source/core/dom/DocumentOrderedList.h |
+++ b/Source/core/dom/DocumentInitializer.h |
@@ -25,36 +25,43 @@ |
* |
*/ |
-#ifndef DocumentOrderedList_h |
-#define DocumentOrderedList_h |
+#ifndef DocumentInitializer_h |
+#define DocumentInitializer_h |
-#include "wtf/FastAllocBase.h" |
-#include "wtf/ListHashSet.h" |
+#include "core/dom/SecurityContext.h" |
+#include "weborigin/KURL.h" |
namespace WebCore { |
-class Node; |
+class Frame; |
+class HTMLImport; |
+class Settings; |
-class DocumentOrderedList { |
- WTF_MAKE_NONCOPYABLE(DocumentOrderedList); WTF_MAKE_FAST_ALLOCATED; |
+class DocumentInitializer { |
public: |
- DocumentOrderedList() { } |
+ explicit DocumentInitializer(const KURL& url = KURL(), Frame* frame = 0, HTMLImport* import = 0) |
+ : m_url(url) |
+ , m_frame(frame) |
+ , m_import(import) |
+ { } |
abarth-chromium
2013/07/12 23:32:53
These go on separate lines.
|
- void add(Node*); |
- void parserAdd(Node*); |
- void remove(Node*); |
- bool isEmpty() const { return m_nodes.isEmpty(); } |
- void clear() { m_nodes.clear(); } |
+ const KURL& url() const { return m_url; } |
+ Frame* frame() const { return m_frame; } |
+ HTMLImport* import() const { return m_import; } |
- typedef ListHashSet<Node*, 32>::iterator iterator; |
+ bool shouldTreatURLAsSrcdocDocument() const; |
+ bool shouldSetURL() const; |
+ SandboxFlags sandboxFlags() const; |
- iterator begin() { return m_nodes.begin(); } |
- iterator end() { return m_nodes.end(); } |
+ Frame* ownerFrame() const; |
+ Settings* settings() const; |
private: |
- ListHashSet<Node*, 32> m_nodes; |
+ KURL m_url; |
+ Frame* m_frame; |
+ HTMLImport* m_import; |
}; |
-} |
+} // namespace WebCore |
-#endif |
+#endif // DocumentInitializer_h |