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 #include "remoting/signaling/xmpp_stream_parser.h" | 5 #include "remoting/signaling/xmpp_stream_parser.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
11 #include "third_party/webrtc/libjingle/xmllite/xmlbuilder.h" | 12 #include "third_party/webrtc/libjingle/xmllite/xmlbuilder.h" |
12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
13 #include "third_party/webrtc/libjingle/xmllite/xmlparser.h" | 14 #include "third_party/webrtc/libjingle/xmllite/xmlparser.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 | 17 |
17 class XmppStreamParser::Core : public buzz::XmlParseHandler { | 18 class XmppStreamParser::Core : public buzz::XmlParseHandler { |
18 public: | 19 public: |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void XmppStreamParser::SetCallbacks(const OnStanzaCallback& on_stanza_callback, | 163 void XmppStreamParser::SetCallbacks(const OnStanzaCallback& on_stanza_callback, |
163 const base::Closure& on_error_callback) { | 164 const base::Closure& on_error_callback) { |
164 core_->SetCallbacks(on_stanza_callback, on_error_callback); | 165 core_->SetCallbacks(on_stanza_callback, on_error_callback); |
165 } | 166 } |
166 | 167 |
167 void XmppStreamParser::AppendData(const std::string& data) { | 168 void XmppStreamParser::AppendData(const std::string& data) { |
168 core_->AppendData(data); | 169 core_->AppendData(data); |
169 } | 170 } |
170 | 171 |
171 } // namespace remoting | 172 } // namespace remoting |
OLD | NEW |