#ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
#define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
namespace net {
class ClientSocketPoolManager;
class HttpNetworkSession;
class HttpStreamFactory;
class ProxyService;
class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
public:
explicit HttpNetworkSessionPeer(
const scoped_refptr<HttpNetworkSession>& session);
~HttpNetworkSessionPeer();
void SetClientSocketPoolManager(
scoped_ptr<ClientSocketPoolManager> socket_pool_manager);
void SetProxyService(ProxyService* proxy_service);
void SetHttpStreamFactory(scoped_ptr<HttpStreamFactory> http_stream_factory);
void SetHttpStreamFactoryForWebSocket(
scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket);
private:
const scoped_refptr<HttpNetworkSession> session_;
DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer);
};
}
#endif