| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ | 5 #ifndef REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ |
| 6 #define REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ | 6 #define REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 12 | 13 |
| 13 namespace buzz { | 14 namespace buzz { |
| 14 class XmlElement; | 15 class XmlElement; |
| 15 } // namespace buzz | 16 } // namespace buzz |
| 16 | 17 |
| 17 namespace remoting { | 18 namespace remoting { |
| 18 | 19 |
| 19 // XmppStreamParser is used to parse XMPP stream. Data is fed to the parser | 20 // XmppStreamParser is used to parse XMPP stream. Data is fed to the parser |
| 20 // using appendData() method and it calls |on_stanza_callback\ and | 21 // using appendData() method and it calls |on_stanza_callback\ and |
| 21 // |on_error_callback| specified using SetCallbacks(). | 22 // |on_error_callback| specified using SetCallbacks(). |
| (...skipping 14 matching lines...) Expand all Loading... |
| 36 class Core; | 37 class Core; |
| 37 | 38 |
| 38 scoped_ptr<Core> core_; | 39 scoped_ptr<Core> core_; |
| 39 | 40 |
| 40 DISALLOW_COPY_AND_ASSIGN(XmppStreamParser); | 41 DISALLOW_COPY_AND_ASSIGN(XmppStreamParser); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace remoting | 44 } // namespace remoting |
| 44 | 45 |
| 45 #endif // REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ | 46 #endif // REMOTING_SIGNALING_XMPP_STREAM_PARSER_H_ |
| OLD | NEW |