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

Unified Diff: net/http/http_server_properties.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.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 25725a8bd953e4c6ec6d3808316634af16e2a9bc..514278cc2224253a0a2a8414c517e3bdae00b1b0 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -7,6 +7,8 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/strings/stringprintf.h"
+#include "net/socket/ssl_client_socket.h"
+#include "net/ssl/ssl_config.h"
namespace net {
@@ -106,4 +108,10 @@ std::string AlternateProtocolInfo::ToString() const {
is_broken ? " (broken)" : "");
}
+// static
+void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) {
+ ssl_config->next_protos.clear();
+ ssl_config->next_protos.push_back(kProtoHTTP11);
+}
+
} // namespace net
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698