[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | ||||
6 | #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | ||||
7 | #pragma once | ||||
8 | |||||
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 9 | #include "base/memory/ref_counted.h" |
[email protected] | 172da1b | 2011-08-12 15:52:26 | [diff] [blame] | 10 | #include "net/base/net_export.h" |
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 11 | |
12 | namespace net { | ||||
13 | |||||
[email protected] | a42dbd14 | 2011-11-17 16:42:02 | [diff] [blame^] | 14 | class ClientSocketPoolManager; |
[email protected] | 5322a7f | 2011-02-11 20:44:42 | [diff] [blame] | 15 | class HostPortPair; |
16 | class HttpNetworkSession; | ||||
[email protected] | 102e27c | 2011-02-23 01:01:31 | [diff] [blame] | 17 | class HttpStreamFactory; |
[email protected] | 5322a7f | 2011-02-11 20:44:42 | [diff] [blame] | 18 | class ProxyService; |
[email protected] | 5322a7f | 2011-02-11 20:44:42 | [diff] [blame] | 19 | |
[email protected] | 172da1b | 2011-08-12 15:52:26 | [diff] [blame] | 20 | class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { |
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 21 | public: |
22 | explicit HttpNetworkSessionPeer( | ||||
[email protected] | 5322a7f | 2011-02-11 20:44:42 | [diff] [blame] | 23 | const scoped_refptr<HttpNetworkSession>& session); |
24 | ~HttpNetworkSessionPeer(); | ||||
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 25 | |
[email protected] | a42dbd14 | 2011-11-17 16:42:02 | [diff] [blame^] | 26 | void SetClientSocketPoolManager( |
27 | ClientSocketPoolManager* socket_pool_manager); | ||||
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 28 | |
[email protected] | 5322a7f | 2011-02-11 20:44:42 | [diff] [blame] | 29 | void SetProxyService(ProxyService* proxy_service); |
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 30 | |
[email protected] | 102e27c | 2011-02-23 01:01:31 | [diff] [blame] | 31 | void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); |
32 | |||||
[email protected] | 87bfa3f | 2010-09-30 14:54:56 | [diff] [blame] | 33 | private: |
34 | const scoped_refptr<HttpNetworkSession> session_; | ||||
35 | |||||
36 | DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | ||||
37 | }; | ||||
38 | |||||
39 | } // namespace net | ||||
40 | |||||
41 | #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |