summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache_transaction.cc')
-rw-r--r--net/http/http_cache_transaction.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 58288f4..6550703 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -625,6 +625,16 @@ int HttpCache::Transaction::DoSendRequest() {
return rv;
next_state_ = STATE_SEND_REQUEST_COMPLETE;
+ if (request_->url.SchemeIs("https") &&
+ SSLConfigService::snap_start_enabled()) {
+ // TODO(agl): in order to support AlternateProtocol there should probably
+ // be an object hanging off the HttpNetworkSession which constructs these.
+ // Note: when this test is removed, don't forget to remove the #include of
+ // ssl_config_service.h
+ scoped_refptr<DiskCacheBasedSSLHostInfo> hostinfo =
+ new DiskCacheBasedSSLHostInfo(request_->url.host(), cache_);
+ network_trans_->SetSSLHostInfo(hostinfo.get());
+ }
rv = network_trans_->Start(request_, &io_callback_, net_log_);
return rv;
}