Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Side by Side Diff: net/http/http_network_session.cc

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix races Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 26 matching lines...) Expand all
37 params.host_resolver, 37 params.host_resolver,
38 params.cert_verifier, 38 params.cert_verifier,
39 params.origin_bound_cert_service, 39 params.origin_bound_cert_service,
40 params.dnsrr_resolver, 40 params.dnsrr_resolver,
41 params.dns_cert_checker, 41 params.dns_cert_checker,
42 params.ssl_host_info_factory, 42 params.ssl_host_info_factory,
43 params.proxy_service, 43 params.proxy_service,
44 params.ssl_config_service), 44 params.ssl_config_service),
45 spdy_session_pool_(params.host_resolver, params.ssl_config_service), 45 spdy_session_pool_(params.host_resolver, params.ssl_config_service),
46 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_( 46 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_(
47 new HttpStreamFactoryImpl(this))) { 47 new HttpStreamFactoryImpl(this))),
48 http_pipelined_host_pool_(http_stream_factory_.get()) {
48 DCHECK(proxy_service_); 49 DCHECK(proxy_service_);
49 DCHECK(ssl_config_service_); 50 DCHECK(ssl_config_service_);
50 CHECK(http_server_properties_); 51 CHECK(http_server_properties_);
51 } 52 }
52 53
53 HttpNetworkSession::~HttpNetworkSession() { 54 HttpNetworkSession::~HttpNetworkSession() {
54 STLDeleteElements(&response_drainers_); 55 STLDeleteElements(&response_drainers_);
55 spdy_session_pool_.CloseAllSessions(); 56 spdy_session_pool_.CloseAllSessions();
56 } 57 }
57 58
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 socket_pool_manager_.FlushSocketPools(); 94 socket_pool_manager_.FlushSocketPools();
94 spdy_session_pool_.CloseCurrentSessions(); 95 spdy_session_pool_.CloseCurrentSessions();
95 } 96 }
96 97
97 void HttpNetworkSession::CloseIdleConnections() { 98 void HttpNetworkSession::CloseIdleConnections() {
98 socket_pool_manager_.CloseIdleSockets(); 99 socket_pool_manager_.CloseIdleSockets();
99 spdy_session_pool_.CloseIdleSessions(); 100 spdy_session_pool_.CloseIdleSessions();
100 } 101 }
101 102
102 } // namespace net 103 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698