| 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 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class HostPortPair; | 13 class HostPortPair; |
| 14 class HttpNetworkSession; | 14 class HttpNetworkSession; |
| 15 class HttpProxyClientSocketPool; | 15 class HttpProxyClientSocketPool; |
| 16 class HttpStreamFactory; | 16 class HttpStreamFactory; |
| 17 class ProxyService; | 17 class ProxyService; |
| 18 class SOCKSClientSocketPool; | 18 class SOCKSClientSocketPool; |
| 19 class SSLClientSocketPool; | 19 class SSLClientSocketPool; |
| 20 class TCPClientSocketPool; | 20 class TCPClientSocketPool; |
| 21 class SCTPClientSocketPool; |
| 21 | 22 |
| 22 class HttpNetworkSessionPeer { | 23 class HttpNetworkSessionPeer { |
| 23 public: | 24 public: |
| 24 explicit HttpNetworkSessionPeer( | 25 explicit HttpNetworkSessionPeer( |
| 25 const scoped_refptr<HttpNetworkSession>& session); | 26 const scoped_refptr<HttpNetworkSession>& session); |
| 26 ~HttpNetworkSessionPeer(); | 27 ~HttpNetworkSessionPeer(); |
| 27 | 28 |
| 28 void SetTCPSocketPool(TCPClientSocketPool* pool); | 29 void SetTCPSocketPool(TCPClientSocketPool* pool); |
| 29 | 30 |
| 31 void SetSCTPSocketPool(SCTPClientSocketPool* pool); |
| 32 |
| 30 void SetSocketPoolForSOCKSProxy( | 33 void SetSocketPoolForSOCKSProxy( |
| 31 const HostPortPair& socks_proxy, | 34 const HostPortPair& socks_proxy, |
| 32 SOCKSClientSocketPool* pool); | 35 SOCKSClientSocketPool* pool); |
| 33 | 36 |
| 34 void SetSocketPoolForHTTPProxy( | 37 void SetSocketPoolForHTTPProxy( |
| 35 const HostPortPair& http_proxy, | 38 const HostPortPair& http_proxy, |
| 36 HttpProxyClientSocketPool* pool); | 39 HttpProxyClientSocketPool* pool); |
| 37 | 40 |
| 38 void SetSSLSocketPool(SSLClientSocketPool* pool); | 41 void SetSSLSocketPool(SSLClientSocketPool* pool); |
| 39 | 42 |
| 40 void SetSocketPoolForSSLWithProxy( | 43 void SetSocketPoolForSSLWithProxy( |
| 41 const HostPortPair& proxy_host, | 44 const HostPortPair& proxy_host, |
| 42 SSLClientSocketPool* pool); | 45 SSLClientSocketPool* pool); |
| 43 | 46 |
| 44 void SetProxyService(ProxyService* proxy_service); | 47 void SetProxyService(ProxyService* proxy_service); |
| 45 | 48 |
| 46 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); | 49 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); |
| 47 | 50 |
| 48 private: | 51 private: |
| 49 const scoped_refptr<HttpNetworkSession> session_; | 52 const scoped_refptr<HttpNetworkSession> session_; |
| 50 | 53 |
| 51 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | 54 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace net | 57 } // namespace net |
| 55 | 58 |
| 56 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 59 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| OLD | NEW |