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

Unified Diff: net/http/http_stream.h

Issue 2805043004: Add a GetAlternativeService method to HttpStream to return any (Closed)
Patch Set: Created 3 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/http/http_stream.h
diff --git a/net/http/http_stream.h b/net/http/http_stream.h
index 3def66ee9a2dfc2d8d9fd14a4a100d85c8b09f6e..78458e4b29217b74592de319668728ade77a163c 100644
--- a/net/http/http_stream.h
+++ b/net/http/http_stream.h
@@ -30,6 +30,7 @@ class ECPrivateKey;
namespace net {
+struct AlternativeService;
class HttpNetworkSession;
class HttpRequestHeaders;
struct HttpRequestInfo;
@@ -150,6 +151,11 @@ class NET_EXPORT_PRIVATE HttpStream {
// undefined.
virtual void GetSSLInfo(SSLInfo* ssl_info) = 0;
+ // Returns true and populates |alternative_service| if an alternative service
+ // was used to for this stream. Otherwise returns false.
+ virtual bool GetAlternativeService(
+ AlternativeService* alternative_service) const = 0;
+
// Get the SSLCertRequestInfo associated with this stream's connection.
// This should only be called for streams over SSL sockets, otherwise the
// behavior is undefined.

Powered by Google App Engine
This is Rietveld 408576698