1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
8 #include "base/memory/ref_counted.h"
9 #include "net/base/net_export.h"
13 class ClientSocketPoolManager
;
14 class HttpNetworkSession
;
15 class HttpStreamFactory
;
18 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer
{
20 explicit HttpNetworkSessionPeer(
21 const scoped_refptr
<HttpNetworkSession
>& session
);
22 ~HttpNetworkSessionPeer();
24 void SetClientSocketPoolManager(
25 ClientSocketPoolManager
* socket_pool_manager
);
27 void SetProxyService(ProxyService
* proxy_service
);
29 void SetHttpStreamFactory(HttpStreamFactory
* http_stream_factory
);
32 const scoped_refptr
<HttpNetworkSession
> session_
;
34 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer
);
39 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_