OLD | NEW |
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/single_thread_task_runner.h" |
9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" | 12 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
12 #include "third_party/libjingle_xmpp/xmpp/constants.h" | 13 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 | 16 |
16 DelegatingSignalStrategy::DelegatingSignalStrategy( | 17 DelegatingSignalStrategy::DelegatingSignalStrategy( |
17 const SignalingAddress& local_address, | 18 const SignalingAddress& local_address, |
18 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner, | 19 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 delegate_task_runner_->PostTask(FROM_HERE, | 106 delegate_task_runner_->PostTask(FROM_HERE, |
106 base::Bind(send_iq_callback_, stanza->Str())); | 107 base::Bind(send_iq_callback_, stanza->Str())); |
107 return true; | 108 return true; |
108 } | 109 } |
109 | 110 |
110 std::string DelegatingSignalStrategy::GetNextId() { | 111 std::string DelegatingSignalStrategy::GetNextId() { |
111 return base::Uint64ToString(base::RandUint64()); | 112 return base::Uint64ToString(base::RandUint64()); |
112 } | 113 } |
113 | 114 |
114 } // namespace remoting | 115 } // namespace remoting |
OLD | NEW |