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

Unified Diff: webrtc/libjingle/xmpp/xmppstanzaparser.h

Issue 2617443003: Remove webrtc/libjingle/{xmllite,xmpp} (Closed)
Patch Set: Created 3 years, 11 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 | « webrtc/libjingle/xmpp/xmppsocket.cc ('k') | webrtc/libjingle/xmpp/xmppstanzaparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/libjingle/xmpp/xmppstanzaparser.h
diff --git a/webrtc/libjingle/xmpp/xmppstanzaparser.h b/webrtc/libjingle/xmpp/xmppstanzaparser.h
deleted file mode 100644
index 3ad052e4ff2fcc05bf722f77f80d0139ea84b016..0000000000000000000000000000000000000000
--- a/webrtc/libjingle/xmpp/xmppstanzaparser.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_LIBJINGLE_XMPP_XMPPSTANZAPARSER_H_
-#define WEBRTC_LIBJINGLE_XMPP_XMPPSTANZAPARSER_H_
-
-#include "webrtc/libjingle/xmllite/xmlbuilder.h"
-#include "webrtc/libjingle/xmllite/xmlparser.h"
-
-
-namespace buzz {
-
-class XmlElement;
-
-class XmppStanzaParseHandler {
-public:
- virtual ~XmppStanzaParseHandler() {}
- virtual void StartStream(const XmlElement * pelStream) = 0;
- virtual void Stanza(const XmlElement * pelStanza) = 0;
- virtual void EndStream() = 0;
- virtual void XmlError() = 0;
-};
-
-class XmppStanzaParser {
-public:
- XmppStanzaParser(XmppStanzaParseHandler *psph);
- bool Parse(const char * data, size_t len, bool isFinal)
- { return parser_.Parse(data, len, isFinal); }
- void Reset();
-
-private:
- class ParseHandler : public XmlParseHandler {
- public:
- ParseHandler(XmppStanzaParser * outer) : outer_(outer) {}
- virtual void StartElement(XmlParseContext * pctx,
- const char * name, const char ** atts)
- { outer_->IncomingStartElement(pctx, name, atts); }
- virtual void EndElement(XmlParseContext * pctx,
- const char * name)
- { outer_->IncomingEndElement(pctx, name); }
- virtual void CharacterData(XmlParseContext * pctx,
- const char * text, int len)
- { outer_->IncomingCharacterData(pctx, text, len); }
- virtual void Error(XmlParseContext * pctx,
- XML_Error errCode)
- { outer_->IncomingError(pctx, errCode); }
- private:
- XmppStanzaParser * const outer_;
- };
-
- friend class ParseHandler;
-
- void IncomingStartElement(XmlParseContext * pctx,
- const char * name, const char ** atts);
- void IncomingEndElement(XmlParseContext * pctx,
- const char * name);
- void IncomingCharacterData(XmlParseContext * pctx,
- const char * text, int len);
- void IncomingError(XmlParseContext * pctx,
- XML_Error errCode);
-
- XmppStanzaParseHandler * psph_;
- ParseHandler innerHandler_;
- XmlParser parser_;
- int depth_;
- XmlBuilder builder_;
-
- };
-
-
-}
-
-#endif // WEBRTC_LIBJINGLE_XMPP_XMPPSTANZAPARSER_H_
« no previous file with comments | « webrtc/libjingle/xmpp/xmppsocket.cc ('k') | webrtc/libjingle/xmpp/xmppstanzaparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698