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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 8423028: Persist dynamically learned SPDY settings (like CWND). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_session_pool.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.cc
===================================================================
--- net/spdy/spdy_session_pool.cc (revision 110097)
+++ net/spdy/spdy_session_pool.cc (working copy)
@@ -10,6 +10,7 @@
#include "net/base/address_list.h"
#include "net/base/sys_addrinfo.h"
#include "net/http/http_network_session.h"
+#include "net/http/http_server_properties.h"
#include "net/spdy/spdy_session.h"
@@ -40,8 +41,10 @@
bool SpdySessionPool::g_enable_ip_pooling = true;
SpdySessionPool::SpdySessionPool(HostResolver* resolver,
- SSLConfigService* ssl_config_service)
- : ssl_config_service_(ssl_config_service),
+ SSLConfigService* ssl_config_service,
+ HttpServerProperties* http_server_properties)
+ : http_server_properties_(http_server_properties),
+ ssl_config_service_(ssl_config_service),
resolver_(resolver),
verify_domain_authentication_(true) {
NetworkChangeNotifier::AddIPAddressObserver(this);
@@ -110,7 +113,8 @@
DCHECK(!only_use_existing_sessions);
- spdy_session = new SpdySession(host_port_proxy_pair, this, &spdy_settings_,
+ spdy_session = new SpdySession(host_port_proxy_pair, this,
+ http_server_properties_,
verify_domain_authentication_,
net_log.net_log());
UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionGet",
@@ -136,7 +140,8 @@
IMPORTED_FROM_SOCKET,
SPDY_SESSION_GET_MAX);
// Create the SPDY session and add it to the pool.
- *spdy_session = new SpdySession(host_port_proxy_pair, this, &spdy_settings_,
+ *spdy_session = new SpdySession(host_port_proxy_pair, this,
+ http_server_properties_,
verify_domain_authentication_,
net_log.net_log());
SpdySessionList* list = GetSessionList(host_port_proxy_pair);
@@ -207,7 +212,7 @@
void SpdySessionPool::OnIPAddressChanged() {
CloseCurrentSessions();
- spdy_settings_.Clear();
+ http_server_properties_->ClearSpdySettings();
}
void SpdySessionPool::OnSSLConfigChanged() {
« no previous file with comments | « net/spdy/spdy_session_pool.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698