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 NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
6 #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 6 #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
| 14 class ClientSocketPoolManager; |
14 class HostPortPair; | 15 class HostPortPair; |
15 class HttpNetworkSession; | 16 class HttpNetworkSession; |
16 class HttpProxyClientSocketPool; | |
17 class HttpStreamFactory; | 17 class HttpStreamFactory; |
18 class ProxyService; | 18 class ProxyService; |
19 class SOCKSClientSocketPool; | |
20 class SSLClientSocketPool; | |
21 class TransportClientSocketPool; | |
22 | 19 |
23 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { | 20 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { |
24 public: | 21 public: |
25 explicit HttpNetworkSessionPeer( | 22 explicit HttpNetworkSessionPeer( |
26 const scoped_refptr<HttpNetworkSession>& session); | 23 const scoped_refptr<HttpNetworkSession>& session); |
27 ~HttpNetworkSessionPeer(); | 24 ~HttpNetworkSessionPeer(); |
28 | 25 |
29 void SetTransportSocketPool(TransportClientSocketPool* pool); | 26 void SetClientSocketPoolManager( |
30 | 27 ClientSocketPoolManager* socket_pool_manager); |
31 void SetSocketPoolForSOCKSProxy( | |
32 const HostPortPair& socks_proxy, | |
33 SOCKSClientSocketPool* pool); | |
34 | |
35 void SetSocketPoolForHTTPProxy( | |
36 const HostPortPair& http_proxy, | |
37 HttpProxyClientSocketPool* pool); | |
38 | |
39 void SetSSLSocketPool(SSLClientSocketPool* pool); | |
40 | |
41 void SetSocketPoolForSSLWithProxy( | |
42 const HostPortPair& proxy_host, | |
43 SSLClientSocketPool* pool); | |
44 | 28 |
45 void SetProxyService(ProxyService* proxy_service); | 29 void SetProxyService(ProxyService* proxy_service); |
46 | 30 |
47 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); | 31 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); |
48 | 32 |
49 private: | 33 private: |
50 const scoped_refptr<HttpNetworkSession> session_; | 34 const scoped_refptr<HttpNetworkSession> session_; |
51 | 35 |
52 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | 36 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); |
53 }; | 37 }; |
54 | 38 |
55 } // namespace net | 39 } // namespace net |
56 | 40 |
57 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 41 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
OLD | NEW |