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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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_server_properties_impl.h ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_impl.cc
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index f571c1115d4fc44abd8be48fa08124a77fe8580e..a8bc04a685980d1f5adb6d1ec778cdbc58f77968 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -198,6 +198,31 @@ void HttpServerPropertiesImpl::SetSupportsSpdy(
spdy_servers_map_.Put(host_port_pair.ToString(), support_spdy);
}
+bool HttpServerPropertiesImpl::RequiresHTTP11(
+ const net::HostPortPair& host_port_pair) {
+ DCHECK(CalledOnValidThread());
+ if (host_port_pair.host().empty())
+ return false;
+
+ return (http11_servers_.find(host_port_pair) != http11_servers_.end());
+}
+
+void HttpServerPropertiesImpl::SetHTTP11Required(
+ const net::HostPortPair& host_port_pair) {
+ DCHECK(CalledOnValidThread());
+ if (host_port_pair.host().empty())
+ return;
+
+ http11_servers_.insert(host_port_pair);
+}
+
+void HttpServerPropertiesImpl::MaybeForceHTTP11(const HostPortPair& server,
+ SSLConfig* ssl_config) {
+ if (RequiresHTTP11(server)) {
+ ForceHTTP11(ssl_config);
+ }
+}
+
bool HttpServerPropertiesImpl::HasAlternateProtocol(
const HostPortPair& server) {
if (g_forced_alternate_protocol)
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698