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

Unified Diff: net/url_request/url_request_context.cc

Issue 6873029: Apply HSTS rules to also upgrade ws:// -> wss:// if appropriate. This avoids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
Index: net/url_request/url_request_context.cc
===================================================================
--- net/url_request/url_request_context.cc (revision 81709)
+++ net/url_request/url_request_context.cc (working copy)
@@ -58,6 +58,15 @@
return EmptyString();
}
+bool URLRequestContext::IsSNIAvailable() const {
willchan no longer on Chromium 2011/04/29 19:09:46 This is purely dependent on the SSLConfigService.
+ if (!ssl_config_service_)
+ return false;
+
+ SSLConfig ssl_config;
+ ssl_config_service_->GetSSLConfig(&ssl_config);
+ return ssl_config.tls1_enabled;
+}
+
URLRequestContext::~URLRequestContext() {
}

Powered by Google App Engine
This is Rietveld 408576698