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 JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 5 #ifndef JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "jingle/notifier/base/resolving_client_socket_factory.h" | 11 #include "jingle/notifier/base/resolving_client_socket_factory.h" |
12 #include "net/base/ssl_config_service.h" | 12 #include "net/base/ssl_config_service.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 class ClientSocketFactory; | 15 class ClientSocketFactory; |
16 class ClientSocketHandle; | 16 class ClientSocketHandle; |
17 class HostPortPair; | 17 class HostPortPair; |
18 class NetLog; | |
19 class SSLClientSocket; | 18 class SSLClientSocket; |
20 class SSLHostInfo; | |
21 class StreamSocket; | 19 class StreamSocket; |
22 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
23 } | 21 } |
24 | 22 |
25 namespace notifier { | 23 namespace notifier { |
26 | 24 |
27 class XmppClientSocketFactory : public ResolvingClientSocketFactory { | 25 class XmppClientSocketFactory : public ResolvingClientSocketFactory { |
28 public: | 26 public: |
29 // Does not take ownership of |client_socket_factory|. | 27 // Does not take ownership of |client_socket_factory|. |
30 XmppClientSocketFactory( | 28 XmppClientSocketFactory( |
(...skipping 17 matching lines...) Expand all Loading... |
48 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 46 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
49 const net::SSLConfig ssl_config_; | 47 const net::SSLConfig ssl_config_; |
50 const bool use_fake_ssl_client_socket_; | 48 const bool use_fake_ssl_client_socket_; |
51 | 49 |
52 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); | 50 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); |
53 }; | 51 }; |
54 | 52 |
55 } // namespace notifier | 53 } // namespace notifier |
56 | 54 |
57 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 55 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
OLD | NEW |