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

Side by Side Diff: remoting/signaling/xmpp_stream_parser.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Fix GN and sort includes Created 3 years, 12 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 unified diff | Download patch
OLDNEW
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/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "third_party/webrtc/libjingle/xmllite/xmlbuilder.h" 13 #include "third_party/libjingle_xmpp/xmllite/xmlbuilder.h"
14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 14 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
15 #include "third_party/webrtc/libjingle/xmllite/xmlparser.h" 15 #include "third_party/libjingle_xmpp/xmllite/xmlparser.h"
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class XmppStreamParser::Core : public buzz::XmlParseHandler { 19 class XmppStreamParser::Core : public buzz::XmlParseHandler {
20 public: 20 public:
21 typedef base::Callback<void(std::unique_ptr<buzz::XmlElement> stanza)> 21 typedef base::Callback<void(std::unique_ptr<buzz::XmlElement> stanza)>
22 OnStanzaCallback; 22 OnStanzaCallback;
23 23
24 Core(); 24 Core();
25 ~Core() override; 25 ~Core() override;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void XmppStreamParser::SetCallbacks(const OnStanzaCallback& on_stanza_callback, 164 void XmppStreamParser::SetCallbacks(const OnStanzaCallback& on_stanza_callback,
165 const base::Closure& on_error_callback) { 165 const base::Closure& on_error_callback) {
166 core_->SetCallbacks(on_stanza_callback, on_error_callback); 166 core_->SetCallbacks(on_stanza_callback, on_error_callback);
167 } 167 }
168 168
169 void XmppStreamParser::AppendData(const std::string& data) { 169 void XmppStreamParser::AppendData(const std::string& data) {
170 core_->AppendData(data); 170 core_->AppendData(data);
171 } 171 }
172 172
173 } // namespace remoting 173 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698