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

Unified Diff: net/url_request/redirect_info.h

Issue 2111623003: Reland of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize |read_handler| Created 4 years, 6 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 | « ios/web/public/referrer_util_unittest.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/redirect_info.h
diff --git a/net/url_request/redirect_info.h b/net/url_request/redirect_info.h
index 19343dbe6759744be9928e1319d01209138d17eb..727357b55ec7abfef7b694672a732e3cd5fae89c 100644
--- a/net/url_request/redirect_info.h
+++ b/net/url_request/redirect_info.h
@@ -8,6 +8,7 @@
#include <string>
#include "net/base/net_export.h"
+#include "net/url_request/url_request.h"
#include "url/gurl.h"
namespace net {
@@ -38,6 +39,10 @@ struct NET_EXPORT RedirectInfo {
// The new HTTP referrer header.
std::string new_referrer;
+ // The new referrer policy that should be obeyed if there are
+ // subsequent redirects.
+ URLRequest::ReferrerPolicy new_referrer_policy;
+
// The hostname of the referrer if it asked the client to include a referred
// Token Binding when following the redirect; otherwise this is the empty
// string.
« no previous file with comments | « ios/web/public/referrer_util_unittest.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698