Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / net / http / http_network_session_peer.cc
blob74b0d4153103bb83e7fe9db597530e8e6b7ff2d2
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.
5 #include "net/http/http_network_session_peer.h"
7 #include "net/http/http_network_session.h"
8 #include "net/http/http_proxy_client_socket_pool.h"
9 #include "net/proxy/proxy_service.h"
10 #include "net/socket/client_socket_pool_manager.h"
11 #include "net/socket/socks_client_socket_pool.h"
12 #include "net/socket/ssl_client_socket_pool.h"
13 #include "net/socket/transport_client_socket_pool.h"
15 namespace net {
17 HttpNetworkSessionPeer::HttpNetworkSessionPeer(
18 const scoped_refptr<HttpNetworkSession>& session)
19 : session_(session) {}
21 HttpNetworkSessionPeer::~HttpNetworkSessionPeer() {}
23 void HttpNetworkSessionPeer::SetClientSocketPoolManager(
24 ClientSocketPoolManager* socket_pool_manager) {
25 session_->normal_socket_pool_manager_.reset(socket_pool_manager);
28 void HttpNetworkSessionPeer::SetProxyService(ProxyService* proxy_service) {
29 session_->proxy_service_ = proxy_service;
32 void HttpNetworkSessionPeer::SetHttpStreamFactory(
33 HttpStreamFactory* http_stream_factory) {
34 session_->http_stream_factory_.reset(http_stream_factory);
37 void HttpNetworkSessionPeer::SetWebSocketStreamFactory(
38 HttpStreamFactory* http_stream_factory) {
39 session_->websocket_stream_factory_.reset(http_stream_factory);
42 } // namespace net