| OLD | NEW |
| 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 // This class represents contextual information (cookies, cache, etc.) | 5 // This class represents contextual information (cookies, cache, etc.) |
| 6 // that's necessary when processing resource requests. | 6 // that's necessary when processing resource requests. |
| 7 | 7 |
| 8 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 8 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| 9 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 9 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 bool enable_brotli() const { return enable_brotli_; } | 231 bool enable_brotli() const { return enable_brotli_; } |
| 232 | 232 |
| 233 void set_enable_referrer_policy_header(bool enable_referrer_policy_header) { | 233 void set_enable_referrer_policy_header(bool enable_referrer_policy_header) { |
| 234 enable_referrer_policy_header_ = enable_referrer_policy_header; | 234 enable_referrer_policy_header_ = enable_referrer_policy_header; |
| 235 } | 235 } |
| 236 | 236 |
| 237 bool enable_referrer_policy_header() const { | 237 bool enable_referrer_policy_header() const { |
| 238 return enable_referrer_policy_header_; | 238 return enable_referrer_policy_header_; |
| 239 } | 239 } |
| 240 | 240 |
| 241 void DetachFromThread(); |
| 242 |
| 241 private: | 243 private: |
| 242 // --------------------------------------------------------------------------- | 244 // --------------------------------------------------------------------------- |
| 243 // Important: When adding any new members below, consider whether they need to | 245 // Important: When adding any new members below, consider whether they need to |
| 244 // be added to CopyFrom. | 246 // be added to CopyFrom. |
| 245 // --------------------------------------------------------------------------- | 247 // --------------------------------------------------------------------------- |
| 246 | 248 |
| 247 // Ownership for these members are not defined here. Clients should either | 249 // Ownership for these members are not defined here. Clients should either |
| 248 // provide storage elsewhere or have a subclass take ownership. | 250 // provide storage elsewhere or have a subclass take ownership. |
| 249 NetLog* net_log_; | 251 NetLog* net_log_; |
| 250 HostResolver* host_resolver_; | 252 HostResolver* host_resolver_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 281 // following redirects. TODO(estark): remove this flag once | 283 // following redirects. TODO(estark): remove this flag once |
| 282 // Referrer-Policy ships (https://crbug.com/619228). | 284 // Referrer-Policy ships (https://crbug.com/619228). |
| 283 bool enable_referrer_policy_header_; | 285 bool enable_referrer_policy_header_; |
| 284 | 286 |
| 285 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 287 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 } // namespace net | 290 } // namespace net |
| 289 | 291 |
| 290 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 292 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |