blob: 49111a2e31ccebc94c0846b5634439dca95c6c80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
#define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
#pragma once
#include "base/memory/ref_counted.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(
ClientSocketPoolManager* socket_pool_manager);
void SetProxyService(ProxyService* proxy_service);
void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory);
private:
const scoped_refptr<HttpNetworkSession> session_;
DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer);
};
} // namespace net
#endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_
|