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

Unified Diff: net/url_request/url_request.h

Issue 2393633006: Send net's ReferrerPolicy back to Blink while following redirects (Closed)
Patch Set: Remove unnecessary referrer calculation in DocumentThreadableLoader Created 4 years, 2 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 | « content/child/web_url_loader_impl.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 6992fb87ab8b8f7c2411178c72e86aafde88c72f..da5d9d8ea97d388fd6cf058f575bb28bcef33a02 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -83,7 +83,11 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// A ReferrerPolicy for the request can be set with
// set_referrer_policy() and controls the contents of the Referer
- // header when URLRequest follows server redirects.
+ // header when URLRequest follows server redirects. Note that setting
+ // a ReferrerPolicy on the request has no effect on the Referer header
+ // of the initial leg of the request; the caller is responsible for
+ // setting the initial Referer, and the ReferrerPolicy only controls
+ // what happens to the Referer while following redirects.
enum ReferrerPolicy {
// Clear the referrer header if the protocol changes from HTTPS to
// HTTP. This is the default behavior of URLRequest.
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698