summaryrefslogtreecommitdiff
path: root/src/html/html_document.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-08-30 13:06:19 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-08-30 13:06:19 +0000
commitb657c277f517f4ab0a4da21e4f8c4cb6f8f53013 (patch)
tree4ce25caee01c0a2a2ebbe052999b5eb8a2fbe2e3 /src/html/html_document.h
parent229af12d7ab2c071a6888eb8ffc49bb0bbeb9ddd (diff)
downloadlibdom-b657c277f517f4ab0a4da21e4f8c4cb6f8f53013.tar.gz
libdom-b657c277f517f4ab0a4da21e4f8c4cb6f8f53013.tar.bz2
Merge branches/struggleyb/libdom-html to trunk.
A few additional fixes to reduce the number of regressions to single figures. svn path=/trunk/dom/; revision=10724
Diffstat (limited to 'src/html/html_document.h')
-rw-r--r--src/html/html_document.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/html/html_document.h b/src/html/html_document.h
new file mode 100644
index 0000000..4abab09
--- /dev/null
+++ b/src/html/html_document.h
@@ -0,0 +1,47 @@
+/*
+ * This file is part of libdom.
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
+ */
+
+#ifndef dom_internal_html_document_h_
+#define dom_internal_html_document_h_
+
+#include <dom/html/html_document.h>
+
+#include "core/document.h"
+
+struct dom_hubbub_parser;
+struct dom_xml_parser;
+
+/**
+ * The dom_html_document class
+ */
+struct dom_html_document {
+ struct dom_document base; /**< The base class */
+ union {
+ struct dom_hubbub_parser *hp;
+ struct dom_xml_parser *xp;
+ } parser;
+ /**< The underlaying parser of this document */
+
+ struct dom_string *title; /**< HTML document title */
+ struct dom_string *referer; /**< HTML document referer */
+ struct dom_string *domain; /**< HTML document domain */
+ struct dom_string *url; /**< HTML document URL */
+ struct dom_string *cookie; /**< HTML document cookie */
+};
+
+/* Initialise a HTMLDocument */
+dom_exception _dom_html_document_initialise(dom_html_document *doc,
+ dom_alloc alloc, void *pw, dom_msg msg, void *msg_pw,
+ dom_events_default_action_fetcher daf, dom_ui_handler ui,
+ dom_parser_type pt);
+/* Finalise a HTMLDocument */
+void _dom_html_document_finalise(dom_html_document *doc);
+/* Destroy a HTMLDocument */
+void _dom_html_document_destroy(dom_html_document *doc);
+
+#endif
+