diff options
| author | megjablon <megjablon@chromium.org> | 2016-03-01 00:17:21 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-03-01 08:18:32 +0000 |
| commit | 30814b95ba3406d644debb4391cfe1b289d29aa4 (patch) | |
| tree | e02fc6b1e2c1e4be4915f7f757de9ac619a188f1 /chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h | |
| parent | 75f25d949020b8518c1df83fc25f732958a0f9a7 (diff) | |
| download | chromium_src-30814b95ba3406d644debb4391cfe1b289d29aa4.zip chromium_src-30814b95ba3406d644debb4391cfe1b289d29aa4.tar.gz chromium_src-30814b95ba3406d644debb4391cfe1b289d29aa4.tar.bz2 | |
AGSA-initiated weblite intents should be rewritten if Chrome can use weblite
When Chrome receives a navigation intent for a page on googleweblight.com,
Chrome should instead navigate to the url specified in the lite_url query
parameter if all of the following are true:
1) The URL specifies a lite_url parameter
2) Data-Saver is enabled in Chrome
3) the LoFi weblite experiment is enabled
4) the scheme of the url in the lite_url param is HTTP
BUG=584085
Review URL: https://codereview.chromium.org/1688603004
Cr-Commit-Position: refs/heads/master@{#378414}
Diffstat (limited to 'chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h')
| -rw-r--r-- | chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h index e4a6c6e..d351093 100644 --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h @@ -96,6 +96,11 @@ class DataReductionProxySettingsAndroid { JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); + // Return if Lo-Fi previews are enabled via a field trial or the command line. + jboolean AreLoFiPreviewsEnabled( + JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj); + ScopedJavaLocalRef<jstring> GetTokenForAuthChallenge(JNIEnv* env, jobject obj, jstring host, |
