Chromium Code Reviews| Index: components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java |
| diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java b/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java |
| index 810ce12c030ec62c0250b60db4d05597c797c9e5..915e7d7bcc8e2cac11c4dfd9432a0f27d4d8690c 100644 |
| --- a/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java |
| +++ b/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java |
| @@ -102,6 +102,17 @@ public class UrlRequestContextConfig { |
| } |
| /** |
| + * Boolean, enable Data Reduction Proxy if true. |
|
mmenke
2015/04/01 15:46:14
Need to describe what "key" is, and maybe rename i
bengr
2015/04/24 02:30:43
Done. The format is TBD.
|
| + */ |
| + public UrlRequestContextConfig enableDataReductionProxy(boolean value, |
| + String key) { |
| + return (putBoolean(UrlRequestContextConfigList |
| + .ENABLE_DATA_REDUCTION_PROXY, value) |
| + .putString(UrlRequestContextConfigList |
| + .DATA_REDUCTION_PROXY_KEY, key)); |
| + } |
| + |
| + /** |
| * Enumeration, disable or enable cache in memory or on disk. |
| */ |
| public enum HttpCache { |
| @@ -217,6 +228,20 @@ public class UrlRequestContextConfig { |
| } |
| /** |
| + * Overrides Data Reduction Proxy configuration parameters with a comma- |
| + * separated list that specifies the primary proxy name, the fallback |
| + * proxy name, and a secure proxy check url. E.g: |
|
mmenke
2015/04/01 15:46:14
Secure proxy check? Should also comment if they'r
bengr
2015/04/24 02:30:43
Done.
|
| + * https://www.primary.com,https://www.fallback.com:80,http://check.com/ |
| + * @param dataReductionProxyParams |
| + */ |
| + public UrlRequestContextConfig setDataReductionProxyOptions( |
| + String dataReductionProxyParams) { |
| + return putString( |
| + UrlRequestContextConfigList.DATA_REDUCTION_PROXY_OPTIONS, |
| + dataReductionProxyParams); |
| + } |
| + |
| + /** |
| * Get JSON string representation of the config. |
| */ |
| @Override |