| 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 #ifndef REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ | 6 #define REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void OnIncomingMessage(const std::string& message); | 27 void OnIncomingMessage(const std::string& message); |
| 28 | 28 |
| 29 // SignalStrategy interface. | 29 // SignalStrategy interface. |
| 30 void Connect() override; | 30 void Connect() override; |
| 31 void Disconnect() override; | 31 void Disconnect() override; |
| 32 State GetState() const override; | 32 State GetState() const override; |
| 33 Error GetError() const override; | 33 Error GetError() const override; |
| 34 std::string GetLocalJid() const override; | 34 std::string GetLocalJid() const override; |
| 35 void AddListener(Listener* listener) override; | 35 void AddListener(Listener* listener) override; |
| 36 void RemoveListener(Listener* listener) override; | 36 void RemoveListener(Listener* listener) override; |
| 37 bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) override; | 37 bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override; |
| 38 std::string GetNextId() override; | 38 std::string GetNextId() override; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 std::string local_jid_; | 41 std::string local_jid_; |
| 42 SendIqCallback send_iq_callback_; | 42 SendIqCallback send_iq_callback_; |
| 43 | 43 |
| 44 base::ObserverList<Listener> listeners_; | 44 base::ObserverList<Listener> listeners_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(DelegatingSignalStrategy); | 46 DISALLOW_COPY_AND_ASSIGN(DelegatingSignalStrategy); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace remoting | 49 } // namespace remoting |
| 50 | 50 |
| 51 #endif // REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ | 51 #endif // REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ |
| OLD | NEW |