| Index: net/url_request/url_request_context.h
|
| diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
|
| index 498c7dfdcc8512e51dbc4f8b69b479ba30a9cffa..b76948cb12e62523f9cbf4d06ee10878ae532522 100644
|
| --- a/net/url_request/url_request_context.h
|
| +++ b/net/url_request/url_request_context.h
|
| @@ -245,6 +245,14 @@ class NET_EXPORT URLRequestContext
|
|
|
| bool enable_brotli() const { return enable_brotli_; }
|
|
|
| + void set_enable_referrer_policy_header(bool enable_referrer_policy_header) {
|
| + enable_referrer_policy_header_ = enable_referrer_policy_header;
|
| + }
|
| +
|
| + bool enable_referrer_policy_header() const {
|
| + return enable_referrer_policy_header_;
|
| + }
|
| +
|
| private:
|
| // ---------------------------------------------------------------------------
|
| // Important: When adding any new members below, consider whether they need to
|
| @@ -285,6 +293,11 @@ class NET_EXPORT URLRequestContext
|
| // Enables Brotli Content-Encoding support.
|
| bool enable_brotli_;
|
|
|
| + // Enables parsing and applying the Referrer-Policy header when
|
| + // following redirects. TODO(estark): remove this flag once
|
| + // Referrer-Policy ships (https://crbug.com/619228).
|
| + bool enable_referrer_policy_header_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
|
| };
|
|
|
|
|