OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 12 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
13 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 13 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
17 // static | 17 // static |
18 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, | 18 void FakeSignalStrategy::Connect(FakeSignalStrategy* peer1, |
19 FakeSignalStrategy* peer2) { | 19 FakeSignalStrategy* peer2) { |
20 peer1->peer_ = peer2; | 20 peer1->peer_ = peer2; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 if (listener_) | 102 if (listener_) |
103 listener_->OnIncomingStanza(stanza); | 103 listener_->OnIncomingStanza(stanza); |
104 iq_registry_.OnIncomingStanza(stanza); | 104 iq_registry_.OnIncomingStanza(stanza); |
105 | 105 |
106 pending_messages_.pop(); | 106 pending_messages_.pop(); |
107 delete stanza; | 107 delete stanza; |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 } // namespace remoting | 111 } // namespace remoting |
OLD | NEW |