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

Unified Diff: net/http/http_stream_factory.h

Issue 1817583002: Process Alternative Service headers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toggle2
Patch Set: Address comments and rebased Created 4 years, 9 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_network_transaction.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory.h
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index f47ada13c7b5f8c8f74f5e343831037d380f73f8..e207a8676f65f7023e3919276e69ebe087233d0b 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -38,6 +38,7 @@ class HostMappingRules;
class HostPortPair;
class HttpAuthController;
class HttpNetworkSession;
+class HttpResponseHeaders;
class HttpResponseInfo;
class HttpServerProperties;
class HttpStream;
@@ -200,17 +201,9 @@ class NET_EXPORT HttpStreamFactory {
public:
virtual ~HttpStreamFactory();
- void ProcessAlternativeService(
- const base::WeakPtr<HttpServerProperties>& http_server_properties,
- base::StringPiece alternative_service_str,
- const HostPortPair& http_host_port_pair,
- const HttpNetworkSession& session);
-
- void ProcessAlternateProtocol(
- const base::WeakPtr<HttpServerProperties>& http_server_properties,
- const std::vector<std::string>& alternate_protocol_values,
- const HostPortPair& http_host_port_pair,
- const HttpNetworkSession& session);
+ void ProcessAlternativeServices(HttpNetworkSession* session,
+ const HttpResponseHeaders* headers,
+ const HostPortPair& http_host_port_pair);
GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint);
@@ -274,6 +267,18 @@ class NET_EXPORT HttpStreamFactory {
HttpStreamFactory();
private:
+ void ProcessAlternativeService(
+ const base::WeakPtr<HttpServerProperties>& http_server_properties,
+ base::StringPiece alternative_service_str,
+ const HostPortPair& http_host_port_pair,
+ const HttpNetworkSession& session);
+
+ void ProcessAlternateProtocol(
+ const base::WeakPtr<HttpServerProperties>& http_server_properties,
+ const std::vector<std::string>& alternate_protocol_values,
+ const HostPortPair& http_host_port_pair,
+ const HttpNetworkSession& session);
+
static bool spdy_enabled_;
HostPortPair RewriteHost(HostPortPair host_port_pair);
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698