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

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

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h 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 unified diff | Download patch
« no previous file with comments | « remoting/signaling/DEPS ('k') | remoting/signaling/fake_signal_strategy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/delegating_signal_strategy.h" 5 #include "remoting/signaling/delegating_signal_strategy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/rand_util.h" 8 #include "base/rand_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 11 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
12 #include "third_party/webrtc/libjingle/xmpp/constants.h" 12 #include "third_party/libjingle_xmpp/xmpp/constants.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 DelegatingSignalStrategy::DelegatingSignalStrategy( 16 DelegatingSignalStrategy::DelegatingSignalStrategy(
17 std::string local_jid, 17 std::string local_jid,
18 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner, 18 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner,
19 const SendIqCallback& send_iq_callback) 19 const SendIqCallback& send_iq_callback)
20 : local_jid_(local_jid), 20 : local_jid_(local_jid),
21 delegate_task_runner_(base::ThreadTaskRunnerHandle::Get()), 21 delegate_task_runner_(base::ThreadTaskRunnerHandle::Get()),
22 client_task_runner_(client_task_runner), 22 client_task_runner_(client_task_runner),
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 delegate_task_runner_->PostTask(FROM_HERE, 87 delegate_task_runner_->PostTask(FROM_HERE,
88 base::Bind(send_iq_callback_, stanza->Str())); 88 base::Bind(send_iq_callback_, stanza->Str()));
89 return true; 89 return true;
90 } 90 }
91 91
92 std::string DelegatingSignalStrategy::GetNextId() { 92 std::string DelegatingSignalStrategy::GetNextId() {
93 return base::Uint64ToString(base::RandUint64()); 93 return base::Uint64ToString(base::RandUint64());
94 } 94 }
95 95
96 } // namespace remoting 96 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/signaling/DEPS ('k') | remoting/signaling/fake_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698