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

Unified Diff: net/http/http_server_properties.h

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_response_info_unittest.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index ce939e1b2db52c36f4ec8d2cf9a662a66e77bf77..79ce33d6d794bd020f4bd1a4ed80e01585d735b4 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -20,6 +20,8 @@
namespace net {
+struct SSLConfig;
+
enum AlternateProtocolUsage {
// Alternate Protocol was used without racing a normal connection.
ALTERNATE_PROTOCOL_USAGE_NO_RACE = 0,
@@ -168,6 +170,19 @@ class NET_EXPORT HttpServerProperties {
virtual void SetSupportsSpdy(const HostPortPair& server,
bool support_spdy) = 0;
+ // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code.
+ virtual bool RequiresHTTP11(const HostPortPair& server) = 0;
+
+ // Require HTTP/1.1 on subsequent connections. Not persisted.
+ virtual void SetHTTP11Required(const HostPortPair& server) = 0;
+
+ // Modify SSLConfig to force HTTP/1.1.
+ static void ForceHTTP11(SSLConfig* ssl_config);
+
+ // Modify SSLConfig to force HTTP/1.1 if necessary.
+ virtual void MaybeForceHTTP11(const HostPortPair& server,
+ SSLConfig* ssl_config) = 0;
+
// Returns true if |server| has an Alternate-Protocol header.
virtual bool HasAlternateProtocol(const HostPortPair& server) = 0;
« no previous file with comments | « net/http/http_response_info_unittest.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698