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

Unified Diff: net/url_request/url_request.h

Issue 1781003003: Implement referred Token Bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index d3b0b7a7326b647d122ef7c8694bcc17a3595259..f287c6784cf67df970343d473dab5855c5ea7740 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -326,6 +326,13 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
ReferrerPolicy referrer_policy() const { return referrer_policy_; }
void set_referrer_policy(ReferrerPolicy referrer_policy);
+ // If this request should include a referred Token Binding, this returns the
+ // hostname of the referrer that indicated this request should include a
+ // referred Token Binding. Otherwise, this returns the empty string.
+ const std::string& token_binding_referrer() const {
davidben 2016/03/15 22:49:56 Is this actually needed? URLRequestJob is a friend
nharper 2016/03/16 17:49:22 URLRequestHttpJob is accessing it and isn't a frie
davidben 2016/03/24 20:53:51 Oh, C++ works that way? Ugh. Okay then. :-)
+ return token_binding_referrer_;
+ }
+
// Sets the delegate of the request. This is only to allow creating a request
// before creating its delegate. |delegate| must be non-NULL and the request
// must not yet have a Delegate set.
@@ -794,6 +801,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
std::string method_; // "GET", "POST", etc. Should be all uppercase.
std::string referrer_;
ReferrerPolicy referrer_policy_;
+ std::string token_binding_referrer_;
FirstPartyURLPolicy first_party_url_policy_;
HttpRequestHeaders extra_request_headers_;
int load_flags_; // Flags indicating the request type for the load;

Powered by Google App Engine
This is Rietveld 408576698