http_network_session_peer.h revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
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 void SetWebSocketStreamFactory(HttpStreamFactory* websocket_stream_factory); 31 32 private: 33 const scoped_refptr<HttpNetworkSession> session_; 34 35 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); 36}; 37 38} // namespace net 39 40#endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ 41