OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // The XmppSignalStrategy encapsulates all the logic to perform the signaling | 5 // The XmppSignalStrategy encapsulates all the logic to perform the signaling |
6 // STUN/ICE for jingle via a direct XMPP connection. | 6 // STUN/ICE for jingle via a direct XMPP connection. |
7 // | 7 // |
8 // This class is not threadsafe. | 8 // This class is not threadsafe. |
9 | 9 |
10 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ | 10 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 int port; | 48 int port; |
49 bool use_tls; | 49 bool use_tls; |
50 | 50 |
51 std::string username; | 51 std::string username; |
52 std::string auth_token; | 52 std::string auth_token; |
53 std::string auth_service; | 53 std::string auth_service; |
54 }; | 54 }; |
55 | 55 |
56 XmppSignalStrategy( | 56 XmppSignalStrategy( |
57 net::ClientSocketFactory* socket_factory, | 57 net::ClientSocketFactory* socket_factory, |
58 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 58 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
59 const XmppServerConfig& xmpp_server_config); | 59 const XmppServerConfig& xmpp_server_config); |
60 ~XmppSignalStrategy() override; | 60 ~XmppSignalStrategy() override; |
61 | 61 |
62 // SignalStrategy interface. | 62 // SignalStrategy interface. |
63 void Connect() override; | 63 void Connect() override; |
64 void Disconnect() override; | 64 void Disconnect() override; |
65 State GetState() const override; | 65 State GetState() const override; |
66 Error GetError() const override; | 66 Error GetError() const override; |
67 std::string GetLocalJid() const override; | 67 std::string GetLocalJid() const override; |
68 void AddListener(Listener* listener) override; | 68 void AddListener(Listener* listener) override; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ObserverList<Listener, true> listeners_; | 106 ObserverList<Listener, true> listeners_; |
107 | 107 |
108 base::RepeatingTimer<XmppSignalStrategy> keep_alive_timer_; | 108 base::RepeatingTimer<XmppSignalStrategy> keep_alive_timer_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); | 110 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace remoting | 113 } // namespace remoting |
114 | 114 |
115 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ | 115 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ |
OLD | NEW |