OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/jingle_glue/fake_signal_strategy.h" | 5 #include "remoting/jingle_glue/fake_signal_strategy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
15 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 15 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 // static | 19 // static |
20 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, | 20 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, |
21 FakeSignalStrategy* peer2) { | 21 FakeSignalStrategy* peer2) { |
22 peer1->peer_ = peer2; | 22 peer1->peer_ = peer2; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 while ((listener = it.GetNext()) != NULL) { | 116 while ((listener = it.GetNext()) != NULL) { |
117 if (listener->OnSignalStrategyIncomingStanza(stanza)) | 117 if (listener->OnSignalStrategyIncomingStanza(stanza)) |
118 break; | 118 break; |
119 } | 119 } |
120 | 120 |
121 pending_messages_.pop(); | 121 pending_messages_.pop(); |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 } // namespace remoting | 125 } // namespace remoting |
OLD | NEW |