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

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

Issue 2647003: Do not attempt to reuse active sockets after a socket pool flush (usually a network change). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address eroman comments. Created 10 years, 6 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
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 7
8 #include <map> 8 #include <map>
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 HostResolver* host_resolver() { return host_resolver_; } 77 HostResolver* host_resolver() { return host_resolver_; }
78 ProxyService* proxy_service() { return proxy_service_; } 78 ProxyService* proxy_service() { return proxy_service_; }
79 SSLConfigService* ssl_config_service() { return ssl_config_service_; } 79 SSLConfigService* ssl_config_service() { return ssl_config_service_; }
80 const scoped_refptr<SpdySessionPool>& spdy_session_pool() { 80 const scoped_refptr<SpdySessionPool>& spdy_session_pool() {
81 return spdy_session_pool_; 81 return spdy_session_pool_;
82 } 82 }
83 HttpAuthHandlerFactory* http_auth_handler_factory() { 83 HttpAuthHandlerFactory* http_auth_handler_factory() {
84 return http_auth_handler_factory_; 84 return http_auth_handler_factory_;
85 } 85 }
86 86
87 // Replace the current socket pool with a new one. This effectively
88 // abandons the current pool. This is only used for debugging.
89 void ReplaceTCPSocketPool();
90
91 static void set_max_sockets_per_group(int socket_count); 87 static void set_max_sockets_per_group(int socket_count);
92 88
93 static uint16 fixed_http_port(); 89 static uint16 fixed_http_port();
94 static void set_fixed_http_port(uint16 port); 90 static void set_fixed_http_port(uint16 port);
95 91
96 static uint16 fixed_https_port(); 92 static uint16 fixed_https_port();
97 static void set_fixed_https_port(uint16 port); 93 static void set_fixed_https_port(uint16 port);
98 94
99 private: 95 private:
100 typedef std::map<HostPortPair, scoped_refptr<TCPClientSocketPool> > 96 typedef std::map<HostPortPair, scoped_refptr<TCPClientSocketPool> >
(...skipping 23 matching lines...) Expand all
124 scoped_refptr<SSLConfigService> ssl_config_service_; 120 scoped_refptr<SSLConfigService> ssl_config_service_;
125 scoped_refptr<SpdySessionPool> spdy_session_pool_; 121 scoped_refptr<SpdySessionPool> spdy_session_pool_;
126 HttpAuthHandlerFactory* http_auth_handler_factory_; 122 HttpAuthHandlerFactory* http_auth_handler_factory_;
127 NetLog* net_log_; 123 NetLog* net_log_;
128 SpdySettingsStorage spdy_settings_; 124 SpdySettingsStorage spdy_settings_;
129 }; 125 };
130 126
131 } // namespace net 127 } // namespace net
132 128
133 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 129 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698