blob: 94234b607c785a84af2e6cd7f40457e2276e57ff [file] [log] [blame]
[email protected]3b63f8f42011-03-28 01:54:151// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]87bfa3f2010-09-30 14:54:562// 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]3b63f8f42011-03-28 01:54:159#include "base/memory/ref_counted.h"
[email protected]172da1b2011-08-12 15:52:2610#include "net/base/net_export.h"
[email protected]87bfa3f2010-09-30 14:54:5611
12namespace net {
13
[email protected]a42dbd142011-11-17 16:42:0214class ClientSocketPoolManager;
[email protected]5322a7f2011-02-11 20:44:4215class HostPortPair;
16class HttpNetworkSession;
[email protected]102e27c2011-02-23 01:01:3117class HttpStreamFactory;
[email protected]5322a7f2011-02-11 20:44:4218class ProxyService;
[email protected]5322a7f2011-02-11 20:44:4219
[email protected]172da1b2011-08-12 15:52:2620class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
[email protected]87bfa3f2010-09-30 14:54:5621 public:
22 explicit HttpNetworkSessionPeer(
[email protected]5322a7f2011-02-11 20:44:4223 const scoped_refptr<HttpNetworkSession>& session);
24 ~HttpNetworkSessionPeer();
[email protected]87bfa3f2010-09-30 14:54:5625
[email protected]a42dbd142011-11-17 16:42:0226 void SetClientSocketPoolManager(
27 ClientSocketPoolManager* socket_pool_manager);
[email protected]87bfa3f2010-09-30 14:54:5628
[email protected]5322a7f2011-02-11 20:44:4229 void SetProxyService(ProxyService* proxy_service);
[email protected]87bfa3f2010-09-30 14:54:5630
[email protected]102e27c2011-02-23 01:01:3131 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory);
32
[email protected]87bfa3f2010-09-30 14:54:5633 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_