diff options
| author | Selim Gurun <sgurun@google.com> | 2014-05-05 15:59:39 -0700 |
|---|---|---|
| committer | Selim Gurun <sgurun@google.com> | 2014-05-05 17:28:04 -0700 |
| commit | a83f1e3d230300fc49aea0fb49f9f1f6bf628764 (patch) | |
| tree | 43409f19d49485859485e0036fd15dabb05dbdb0 /core/java | |
| parent | 6b003c9e3c0d3e5e31d9578e6d15facc6553e45e (diff) | |
| download | frameworks_base-a83f1e3d230300fc49aea0fb49f9f1f6bf628764.zip frameworks_base-a83f1e3d230300fc49aea0fb49f9f1f6bf628764.tar.gz frameworks_base-a83f1e3d230300fc49aea0fb49f9f1f6bf628764.tar.bz2 | |
Add frameworks/base changes for enabling reduction proxy
Bug:12492817
Add an experimental webview setting to developer options to enable
data reduction proxy.
Change-Id: Id73d7f5d655a7de18afff766c5c78209c92964ea
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/provider/Settings.java | 7 | ||||
| -rw-r--r-- | core/java/android/webkit/WebView.java | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index ab06230..0eb994d 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -4395,6 +4395,13 @@ public final class Settings { public static final String ANR_SHOW_BACKGROUND = "anr_show_background"; /** + * (Experimental). If nonzero, WebView uses data reduction proxy to save network + * bandwidth. Otherwise, WebView does not use data reduction proxy. + * @hide + */ + public static final String WEBVIEW_DATA_REDUCTION_PROXY = "webview_data_reduction_proxy"; + + /** * The {@link ComponentName} string of the service to be used as the voice recognition * service. * diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index d06cd75..4b2b52c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -251,6 +251,15 @@ public class WebView extends AbsoluteLayout implements ViewTreeObserver.OnGlobalFocusChangeListener, ViewGroup.OnHierarchyChangeListener, ViewDebug.HierarchyHandler { + /** + * Broadcast Action: Indicates the data reduction proxy setting changed. + * Sent by the settings app when user changes the data reduction proxy value. This intent will + * always stay as a hidden API. + * @hide + */ + public static final String DATA_REDUCTION_PROXY_SETTING_CHANGED = + "android.webkit.DATA_REDUCTION_PROXY_SETTING_CHANGED"; + private static final String LOGTAG = "WebView"; // Throwing an exception for incorrect thread usage if the |
