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

Unified Diff: net/http/http_cache_transaction.cc

Issue 3846005: Revert 62918 - net: clean up SSLHostInfo construction.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
===================================================================
--- net/http/http_cache_transaction.cc (revision 62921)
+++ net/http/http_cache_transaction.cc (working copy)
@@ -625,6 +625,16 @@
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;
}
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698