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

Unified Diff: net/http/http_stream.h

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: rebase Created 5 years, 3 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 1febd11ae9526972c51b65502c29a2d933b6df98..92a8ad302b74dfb1fc54317a5189359684f04673 100644
--- a/net/http/http_stream.h
+++ b/net/http/http_stream.h
@@ -150,6 +150,12 @@ class NET_EXPORT_PRIVATE HttpStream {
// and does not modify |endpoint| if it is unavailable.
virtual bool GetRemoteEndpoint(IPEndPoint* endpoint) = 0;
+ // Puts the TokenBindingMessage for the SSL connection in |out|. If this
+ // stream's connection is not over an SSL socket, or token binding was not
+ // negotiated for this connection, then |*out| will be set to the empty
+ // string.
mattm 2015/10/01 01:53:01 document return value
nharper 2015/10/01 20:25:46 Done.
+ virtual int GetTokenBindingMessageHeader(std::string* out) = 0;
+
// In the case of an HTTP error or redirect, flush the response body (usually
// a simple error or "this page has moved") so that we can re-use the
// underlying connection. This stream is responsible for deleting itself when

Powered by Google App Engine
This is Rietveld 408576698