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 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ | 5 #ifndef REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ |
6 #define REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ | 6 #define REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ |
7 | 7 |
8 #include "remoting/signaling/signal_strategy.h" | 8 #include "remoting/signaling/signal_strategy.h" |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 class ClientSocketFactory; | 16 class ClientSocketFactory; |
17 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
18 } // namespace net | 18 } // namespace net |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 | 21 |
22 // XmppSignalStrategy implements SignalStrategy using direct XMPP connection. | 22 // XmppSignalStrategy implements SignalStrategy using direct XMPP connection. |
23 class XmppSignalStrategy : public SignalStrategy { | 23 class XmppSignalStrategy : public SignalStrategy { |
24 public: | 24 public: |
25 // XMPP Server configuration for XmppSignalStrategy. | 25 // XMPP Server configuration for XmppSignalStrategy. |
26 struct XmppServerConfig { | 26 struct XmppServerConfig { |
27 XmppServerConfig(); | 27 XmppServerConfig(); |
| 28 XmppServerConfig(const XmppServerConfig& other); |
28 ~XmppServerConfig(); | 29 ~XmppServerConfig(); |
29 | 30 |
30 std::string host; | 31 std::string host; |
31 int port; | 32 int port; |
32 bool use_tls; | 33 bool use_tls; |
33 | 34 |
34 std::string username; | 35 std::string username; |
35 std::string auth_token; | 36 std::string auth_token; |
36 }; | 37 }; |
37 | 38 |
(...skipping 24 matching lines...) Expand all Loading... |
62 class Core; | 63 class Core; |
63 | 64 |
64 scoped_ptr<Core> core_; | 65 scoped_ptr<Core> core_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); | 67 DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace remoting | 70 } // namespace remoting |
70 | 71 |
71 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ | 72 #endif // REMOTING_SIGNALING_XMPP_SIGNAL_STRATEGY_H_ |
OLD | NEW |