| 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 ClientSocketPoolManager; |
| 15 class HostPortPair; | |
| 16 class HttpNetworkSession; | 15 class HttpNetworkSession; |
| 17 class HttpStreamFactory; | 16 class HttpStreamFactory; |
| 18 class ProxyService; | 17 class ProxyService; |
| 19 | 18 |
| 20 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { | 19 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { |
| 21 public: | 20 public: |
| 22 explicit HttpNetworkSessionPeer( | 21 explicit HttpNetworkSessionPeer( |
| 23 const scoped_refptr<HttpNetworkSession>& session); | 22 const scoped_refptr<HttpNetworkSession>& session); |
| 24 ~HttpNetworkSessionPeer(); | 23 ~HttpNetworkSessionPeer(); |
| 25 | 24 |
| 26 void SetClientSocketPoolManager( | 25 void SetClientSocketPoolManager( |
| 27 ClientSocketPoolManager* socket_pool_manager); | 26 ClientSocketPoolManager* socket_pool_manager); |
| 28 | 27 |
| 29 void SetProxyService(ProxyService* proxy_service); | 28 void SetProxyService(ProxyService* proxy_service); |
| 30 | 29 |
| 31 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); | 30 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); |
| 32 | 31 |
| 33 private: | 32 private: |
| 34 const scoped_refptr<HttpNetworkSession> session_; | 33 const scoped_refptr<HttpNetworkSession> session_; |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | 35 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace net | 38 } // namespace net |
| 40 | 39 |
| 41 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 40 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| OLD | NEW |