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

Side by Side Diff: net/url_request/url_request.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 // up into //net's embedder. https://crbug.com/471397 983 // up into //net's embedder. https://crbug.com/471397
984 if (!url::Origin(redirect_info.new_url) 984 if (!url::Origin(redirect_info.new_url)
985 .IsSameOriginWith(url::Origin(url())) && 985 .IsSameOriginWith(url::Origin(url())) &&
986 extra_request_headers_.HasHeader(HttpRequestHeaders::kOrigin)) { 986 extra_request_headers_.HasHeader(HttpRequestHeaders::kOrigin)) {
987 extra_request_headers_.SetHeader(HttpRequestHeaders::kOrigin, 987 extra_request_headers_.SetHeader(HttpRequestHeaders::kOrigin,
988 url::Origin().Serialize()); 988 url::Origin().Serialize());
989 } 989 }
990 990
991 referrer_ = redirect_info.new_referrer; 991 referrer_ = redirect_info.new_referrer;
992 first_party_for_cookies_ = redirect_info.new_first_party_for_cookies; 992 first_party_for_cookies_ = redirect_info.new_first_party_for_cookies;
993 token_binding_referrer_ = redirect_info.referred_token_binding_host;
993 994
994 url_chain_.push_back(redirect_info.new_url); 995 url_chain_.push_back(redirect_info.new_url);
995 --redirect_limit_; 996 --redirect_limit_;
996 997
997 Start(); 998 Start();
998 return OK; 999 return OK;
999 } 1000 }
1000 1001
1001 const URLRequestContext* URLRequest::context() const { 1002 const URLRequestContext* URLRequest::context() const {
1002 return context_; 1003 return context_;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 } 1218 }
1218 1219
1219 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const { 1220 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const {
1220 if (job_) 1221 if (job_)
1221 job_->GetConnectionAttempts(out); 1222 job_->GetConnectionAttempts(out);
1222 else 1223 else
1223 out->clear(); 1224 out->clear();
1224 } 1225 }
1225 1226
1226 } // namespace net 1227 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698