From 7871554e1abe81d745a93c9a97f679f6617f906d Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Wed, 9 Jul 2014 14:40:13 -0700 Subject: Add an API to disable data reduction proxy. Bug: 16011253 Under rare circumstances, the application may need to disable the data reduction proxy. This is to provide a way to do that. Change-Id: I031f689f9d72460c7241aec78459185e0b31f059 --- core/java/android/webkit/WebView.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 482c7e8..290a574 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1805,6 +1805,21 @@ public class WebView extends AbsoluteLayout } /** + * Sets whether the application wants to opt out from using the Data Reduction Proxy + * service. + * Data reduction proxy can only be enabled by the user and will almost always be + * transparent to the application. In rare cases where using the proxy interferes + * with the app, the application developer can use this API to opt out from using the + * proxy. Note that this may increase network bandwidth usage. + * + * See + * Data Compression Proxy + */ + public static void optOutDataReductionProxy() { + getFactory().getStatics().optOutDataReductionProxy(); + } + + /** * Gets the list of currently loaded plugins. * * @return the list of currently loaded plugins -- cgit v1.1