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

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

Issue 8526006: Close idle sockets next time we are about to send data. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: code conventions Created 9 years, 1 month 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
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 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 cert_verifier(NULL), 53 cert_verifier(NULL),
54 origin_bound_cert_service(NULL), 54 origin_bound_cert_service(NULL),
55 dnsrr_resolver(NULL), 55 dnsrr_resolver(NULL),
56 dns_cert_checker(NULL), 56 dns_cert_checker(NULL),
57 proxy_service(NULL), 57 proxy_service(NULL),
58 ssl_host_info_factory(NULL), 58 ssl_host_info_factory(NULL),
59 ssl_config_service(NULL), 59 ssl_config_service(NULL),
60 http_auth_handler_factory(NULL), 60 http_auth_handler_factory(NULL),
61 network_delegate(NULL), 61 network_delegate(NULL),
62 http_server_properties(NULL), 62 http_server_properties(NULL),
63 net_log(NULL) {} 63 net_log(NULL),
64 use_cleanup_timer(true) {}
64 65
65 ClientSocketFactory* client_socket_factory; 66 ClientSocketFactory* client_socket_factory;
66 HostResolver* host_resolver; 67 HostResolver* host_resolver;
67 CertVerifier* cert_verifier; 68 CertVerifier* cert_verifier;
68 OriginBoundCertService* origin_bound_cert_service; 69 OriginBoundCertService* origin_bound_cert_service;
69 DnsRRResolver* dnsrr_resolver; 70 DnsRRResolver* dnsrr_resolver;
70 DnsCertProvenanceChecker* dns_cert_checker; 71 DnsCertProvenanceChecker* dns_cert_checker;
71 ProxyService* proxy_service; 72 ProxyService* proxy_service;
72 SSLHostInfoFactory* ssl_host_info_factory; 73 SSLHostInfoFactory* ssl_host_info_factory;
73 SSLConfigService* ssl_config_service; 74 SSLConfigService* ssl_config_service;
74 HttpAuthHandlerFactory* http_auth_handler_factory; 75 HttpAuthHandlerFactory* http_auth_handler_factory;
75 NetworkDelegate* network_delegate; 76 NetworkDelegate* network_delegate;
76 HttpServerProperties* http_server_properties; 77 HttpServerProperties* http_server_properties;
77 NetLog* net_log; 78 NetLog* net_log;
79 bool use_cleanup_timer;
80
willchan no longer on Chromium 2011/11/15 20:35:29 This newline is spurious
78 }; 81 };
79 82
80 explicit HttpNetworkSession(const Params& params); 83 explicit HttpNetworkSession(const Params& params);
81 84
82 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } 85 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; }
83 SSLClientAuthCache* ssl_client_auth_cache() { 86 SSLClientAuthCache* ssl_client_auth_cache() {
84 return &ssl_client_auth_cache_; 87 return &ssl_client_auth_cache_;
85 } 88 }
86 89
87 void AddResponseDrainer(HttpResponseBodyDrainer* drainer); 90 void AddResponseDrainer(HttpResponseBodyDrainer* drainer);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 SSLClientAuthCache ssl_client_auth_cache_; 159 SSLClientAuthCache ssl_client_auth_cache_;
157 ClientSocketPoolManager socket_pool_manager_; 160 ClientSocketPoolManager socket_pool_manager_;
158 SpdySessionPool spdy_session_pool_; 161 SpdySessionPool spdy_session_pool_;
159 scoped_ptr<HttpStreamFactory> http_stream_factory_; 162 scoped_ptr<HttpStreamFactory> http_stream_factory_;
160 std::set<HttpResponseBodyDrainer*> response_drainers_; 163 std::set<HttpResponseBodyDrainer*> response_drainers_;
161 }; 164 };
162 165
163 } // namespace net 166 } // namespace net
164 167
165 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 168 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698