| 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 #ifndef REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ | 5 #ifndef REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ |
| 6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ | 6 #define REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ |
| 7 | 7 |
| 8 #include "remoting/jingle_glue/signal_strategy.h" | 8 #include "remoting/jingle_glue/signal_strategy.h" |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // SignalStrategy interface. | 31 // SignalStrategy interface. |
| 32 virtual void Init(StatusObserver* observer) OVERRIDE; | 32 virtual void Init(StatusObserver* observer) OVERRIDE; |
| 33 virtual void Close() OVERRIDE; | 33 virtual void Close() OVERRIDE; |
| 34 virtual void AddListener(Listener* listener) OVERRIDE; | 34 virtual void AddListener(Listener* listener) OVERRIDE; |
| 35 virtual void RemoveListener(Listener* listener) OVERRIDE; | 35 virtual void RemoveListener(Listener* listener) OVERRIDE; |
| 36 virtual bool SendStanza(buzz::XmlElement* stanza) OVERRIDE; | 36 virtual bool SendStanza(buzz::XmlElement* stanza) OVERRIDE; |
| 37 virtual std::string GetNextId() OVERRIDE; | 37 virtual std::string GetNextId() OVERRIDE; |
| 38 | 38 |
| 39 // XmppProxy::ResponseCallback interface. | 39 // XmppProxy::ResponseCallback interface. |
| 40 virtual void OnIq(const std::string& stanza); | 40 virtual void OnIq(const std::string& stanza) OVERRIDE; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 std::string your_jid_; | 43 std::string your_jid_; |
| 44 scoped_refptr<XmppProxy> xmpp_proxy_; | 44 scoped_refptr<XmppProxy> xmpp_proxy_; |
| 45 | 45 |
| 46 std::vector<Listener*> listeners_; | 46 std::vector<Listener*> listeners_; |
| 47 | 47 |
| 48 int last_id_; | 48 int last_id_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(JavascriptSignalStrategy); | 50 DISALLOW_COPY_AND_ASSIGN(JavascriptSignalStrategy); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace remoting | 53 } // namespace remoting |
| 54 | 54 |
| 55 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ | 55 #endif // REMOTING_JINGLE_GLUE_JAVASCRIPT_SIGNAL_STRATEGY_H_ |
| OLD | NEW |