OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 11 #ifndef WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
12 #define WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 12 #define WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
13 | 13 |
14 #include "webrtc/libjingle/xmpp/asyncsocket.h" | 14 #include "webrtc/libjingle/xmpp/asyncsocket.h" |
15 #include "webrtc/libjingle/xmpp/xmppengine.h" | 15 #include "webrtc/libjingle/xmpp/xmppengine.h" |
16 #include "webrtc/base/asyncsocket.h" | 16 #include "webrtc/base/asyncsocket.h" |
17 #include "webrtc/base/buffer.h" | 17 #include "webrtc/base/buffer.h" |
18 #include "webrtc/base/sigslot.h" | 18 #include "webrtc/base/sigslot.h" |
19 | 19 |
20 // The below define selects the SSLStreamAdapter implementation for | 20 // The below define selects the SSLStreamAdapter implementation for |
21 // SSL, as opposed to the SSLAdapter socket adapter. | 21 // SSL, as opposed to the SSLAdapter socket adapter. |
22 // #define USE_SSLSTREAM | 22 // #define USE_SSLSTREAM |
23 | 23 |
24 namespace rtc { | 24 namespace rtc { |
25 class StreamInterface; | 25 class StreamInterface; |
26 class SocketAddress; | 26 class SocketAddress; |
27 }; | 27 }; |
28 extern rtc::AsyncSocket* cricket_socket_; | 28 extern rtc::AsyncSocket* cricket_socket_; |
29 | 29 |
30 namespace buzz { | 30 namespace buzz { |
31 | 31 |
32 class XmppSocket : public buzz::AsyncSocket, public sigslot::has_slots<> { | 32 class XmppSocket : public buzz::AsyncSocket, public sigslot::has_slots<> { |
(...skipping 30 matching lines...) Expand all Loading... |
63 #endif // USE_SSLSTREAM | 63 #endif // USE_SSLSTREAM |
64 buzz::AsyncSocket::State state_; | 64 buzz::AsyncSocket::State state_; |
65 rtc::Buffer buffer_; | 65 rtc::Buffer buffer_; |
66 buzz::TlsOptions tls_; | 66 buzz::TlsOptions tls_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace buzz | 69 } // namespace buzz |
70 | 70 |
71 #endif // WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 71 #endif // WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
72 | 72 |
OLD | NEW |