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

Unified Diff: include/xml/SkDOM.h

Issue 2142893006: Dust-off SkXMLParser (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: XML_STATIC for MSVC voodoo Created 4 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
« no previous file with comments | « gyp/xml.gyp ('k') | src/xml/SkDOM.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/xml/SkDOM.h
diff --git a/include/xml/SkDOM.h b/include/xml/SkDOM.h
index 14d79cf8af30488dcf9b7189b4732bc153e80738..2a6ccc4f633e4cc965420269916817df90679136 100644
--- a/include/xml/SkDOM.h
+++ b/include/xml/SkDOM.h
@@ -13,14 +13,16 @@
#include "../private/SkTemplates.h"
#include "SkChunkAlloc.h"
#include "SkScalar.h"
+#include "SkTypes.h"
struct SkDOMNode;
struct SkDOMAttr;
class SkDOMParser;
+class SkStream;
class SkXMLParser;
-class SkDOM {
+class SK_API SkDOM : public SkNoncopyable {
public:
SkDOM();
~SkDOM();
@@ -31,6 +33,7 @@ public:
/** Returns null on failure
*/
const Node* build(const char doc[], size_t len);
+ const Node* build(SkStream&);
const Node* copy(const SkDOM& dom, const Node* node);
const Node* getRootNode() const;
@@ -85,15 +88,13 @@ public:
};
SkDEBUGCODE(void dump(const Node* node = NULL, int tabLevel = 0) const;)
- SkDEBUGCODE(static void UnitTest();)
private:
SkChunkAlloc fAlloc;
Node* fRoot;
SkAutoTDelete<SkDOMParser> fParser;
- friend class AttrIter;
- friend class SkDOMParser;
+ typedef SkNoncopyable INHERITED;
};
#endif
« no previous file with comments | « gyp/xml.gyp ('k') | src/xml/SkDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698