| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fake_signal_strategy.h" | 5 #include "remoting/signaling/fake_signal_strategy.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 16 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
| 17 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 17 #include "third_party/webrtc/libjingle/xmpp/constants.h" |
| 18 | 18 |
| 19 namespace remoting { | 19 namespace remoting { |
| 20 | 20 |
| 21 // static | 21 // static |
| 22 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, | 22 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, |
| 23 FakeSignalStrategy* peer2) { | 23 FakeSignalStrategy* peer2) { |
| 24 DCHECK(peer1->main_thread_->BelongsToCurrentThread()); | 24 DCHECK(peer1->main_thread_->BelongsToCurrentThread()); |
| 25 DCHECK(peer2->main_thread_->BelongsToCurrentThread()); | 25 DCHECK(peer2->main_thread_->BelongsToCurrentThread()); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 if (listener->OnSignalStrategyIncomingStanza(stanza_ptr)) | 151 if (listener->OnSignalStrategyIncomingStanza(stanza_ptr)) |
| 152 break; | 152 break; |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 void FakeSignalStrategy::SetPeerCallback(const PeerCallback& peer_callback) { | 156 void FakeSignalStrategy::SetPeerCallback(const PeerCallback& peer_callback) { |
| 157 peer_callback_ = peer_callback; | 157 peer_callback_ = peer_callback; |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace remoting | 160 } // namespace remoting |
| OLD | NEW |