http_network_session_peer.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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.
4
5#ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
6#define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
7
8#include "base/memory/ref_counted.h"
9#include "net/base/net_export.h"
10
11namespace net {
12
13class ClientSocketPoolManager;
14class HttpNetworkSession;
15class HttpStreamFactory;
16class ProxyService;
17
18class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
19 public:
20  explicit HttpNetworkSessionPeer(
21      const scoped_refptr<HttpNetworkSession>& session);
22  ~HttpNetworkSessionPeer();
23
24  void SetClientSocketPoolManager(
25      ClientSocketPoolManager* socket_pool_manager);
26
27  void SetProxyService(ProxyService* proxy_service);
28
29  void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory);
30
31 private:
32  const scoped_refptr<HttpNetworkSession> session_;
33
34  DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer);
35};
36
37}  // namespace net
38
39#endif  // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
40