| 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/javascript_signal_strategy.h" | 5 #include "remoting/jingle_glue/javascript_signal_strategy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "remoting/jingle_glue/xmpp_proxy.h" | 11 #include "remoting/jingle_glue/xmpp_proxy.h" |
| 12 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 12 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 JavascriptSignalStrategy::JavascriptSignalStrategy(const std::string& local_jid) | 16 JavascriptSignalStrategy::JavascriptSignalStrategy(const std::string& local_jid) |
| 17 : local_jid_(local_jid), | 17 : local_jid_(local_jid), |
| 18 last_id_(0) { | 18 last_id_(0) { |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 ObserverListBase<Listener>::Iterator it(listeners_); | 98 ObserverListBase<Listener>::Iterator it(listeners_); |
| 99 Listener* listener; | 99 Listener* listener; |
| 100 while ((listener = it.GetNext()) != NULL) { | 100 while ((listener = it.GetNext()) != NULL) { |
| 101 if (listener->OnSignalStrategyIncomingStanza(stanza.get())) | 101 if (listener->OnSignalStrategyIncomingStanza(stanza.get())) |
| 102 break; | 102 break; |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace remoting | 106 } // namespace remoting |
| OLD | NEW |