Index: include/xml/SkDOM.h |
diff --git a/include/xml/SkDOM.h b/include/xml/SkDOM.h |
index e0bb744d6d1368b64cc5cce3583958874e29780a..df5766faec6f7f8c287133a71a3999b8cacf0da3 100644 |
--- a/include/xml/SkDOM.h |
+++ b/include/xml/SkDOM.h |
@@ -17,6 +17,9 @@ |
struct SkDOMNode; |
struct SkDOMAttr; |
+class SkDOMParser; |
+class SkXMLParser; |
+ |
class SkDOM { |
public: |
SkDOM(); |
@@ -32,6 +35,9 @@ public: |
const Node* getRootNode() const; |
+ SkXMLParser* beginParsing(); |
+ const Node* finishParsing(); |
+ |
enum Type { |
kElement_Type, |
kText_Type |
@@ -82,8 +88,10 @@ public: |
SkDEBUGCODE(static void UnitTest();) |
private: |
- SkChunkAlloc fAlloc; |
- Node* fRoot; |
+ SkChunkAlloc fAlloc; |
+ Node* fRoot; |
+ SkAutoTDelete<SkDOMParser> fParser; |
+ |
friend class AttrIter; |
friend class SkDOMParser; |
}; |