Chromium Code Reviews| 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 0158d9aca17282fb5153f318f65d596a3c5fb6ef..05888a4bf308d729c7426374752afab8ab40d7e8 100644 |
| --- a/net/url_request/url_request_context.h |
| +++ b/net/url_request/url_request_context.h |
| @@ -230,6 +230,12 @@ class NET_EXPORT URLRequestContext |
| bool enable_brotli() const { return enable_brotli_; } |
| + void set_check_cleartext_permitted(bool check_cleartext_permitted) { |
|
pauljensen
2016/12/07 13:20:28
these functions need comments
mgersh
2016/12/13 17:02:58
Done.
|
| + check_cleartext_permitted_ = check_cleartext_permitted; |
| + } |
| + |
| + bool check_cleartext_permitted() const { return check_cleartext_permitted_; } |
| + |
| private: |
| // --------------------------------------------------------------------------- |
| // Important: When adding any new members below, consider whether they need to |
| @@ -268,6 +274,9 @@ class NET_EXPORT URLRequestContext |
| // Enables Brotli Content-Encoding support. |
| bool enable_brotli_; |
| + // Enables checking policy before allowing a cleartext http or ws request. |
| + // Only used on Android. |
|
pauljensen
2016/12/07 13:20:28
policy->system policy
mgersh
2016/12/13 17:02:58
Done.
|
| + bool check_cleartext_permitted_; |
| DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| }; |