blob: ae57f39d2d77b3ab631f45d4de9fd9e04ab46144 [file] [log] [blame]
[email protected]a4605c52012-03-03 01:12:101// Copyright (c) 2012 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_
[email protected]87bfa3f2010-09-30 14:54:567
[email protected]3b63f8f42011-03-28 01:54:158#include "base/memory/ref_counted.h"
[email protected]831e4a32013-11-14 02:14:449#include "base/memory/scoped_ptr.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 HttpNetworkSession;
[email protected]102e27c2011-02-23 01:01:3116class HttpStreamFactory;
[email protected]5322a7f2011-02-11 20:44:4217class ProxyService;
[email protected]5322a7f2011-02-11 20:44:4218
[email protected]172da1b2011-08-12 15:52:2619class NET_EXPORT_PRIVATE HttpNetworkSessionPeer {
[email protected]87bfa3f2010-09-30 14:54:5620 public:
mmenkee65e7af2015-10-13 17:16:4221 // |session| should outlive the HttpNetworkSessionPeer.
22 explicit HttpNetworkSessionPeer(HttpNetworkSession* session);
[email protected]5322a7f2011-02-11 20:44:4223 ~HttpNetworkSessionPeer();
[email protected]87bfa3f2010-09-30 14:54:5624
[email protected]a42dbd142011-11-17 16:42:0225 void SetClientSocketPoolManager(
[email protected]831e4a32013-11-14 02:14:4426 scoped_ptr<ClientSocketPoolManager> socket_pool_manager);
[email protected]87bfa3f2010-09-30 14:54:5627
[email protected]5322a7f2011-02-11 20:44:4228 void SetProxyService(ProxyService* proxy_service);
[email protected]87bfa3f2010-09-30 14:54:5629
[email protected]831e4a32013-11-14 02:14:4430 void SetHttpStreamFactory(scoped_ptr<HttpStreamFactory> http_stream_factory);
[email protected]0191b51c2013-11-18 10:55:2331 void SetHttpStreamFactoryForWebSocket(
32 scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket);
[email protected]102e27c2011-02-23 01:01:3133
[email protected]87bfa3f2010-09-30 14:54:5634 private:
mmenkee65e7af2015-10-13 17:16:4235 HttpNetworkSession* const session_;
[email protected]87bfa3f2010-09-30 14:54:5636
37 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer);
38};
39
40} // namespace net
41
42#endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_