OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/jni_weak_ref.h" | 9 #include "base/android/jni_weak_ref.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 JNIEnv* env, | 89 JNIEnv* env, |
90 const base::android::JavaParamRef<jobject>& obj); | 90 const base::android::JavaParamRef<jobject>& obj); |
91 | 91 |
92 // Determines whether the data reduction proxy is unreachable. This is | 92 // Determines whether the data reduction proxy is unreachable. This is |
93 // done by keeping a count of requests which go through proxy vs those | 93 // done by keeping a count of requests which go through proxy vs those |
94 // which should have gone through the proxy based on the config. | 94 // which should have gone through the proxy based on the config. |
95 jboolean IsDataReductionProxyUnreachable( | 95 jboolean IsDataReductionProxyUnreachable( |
96 JNIEnv* env, | 96 JNIEnv* env, |
97 const base::android::JavaParamRef<jobject>& obj); | 97 const base::android::JavaParamRef<jobject>& obj); |
98 | 98 |
| 99 // Return if Lo-Fi previews are enabled via a field trial or the command line. |
| 100 jboolean AreLoFiPreviewsEnabled( |
| 101 JNIEnv* env, |
| 102 const base::android::JavaParamRef<jobject>& obj); |
| 103 |
99 ScopedJavaLocalRef<jstring> GetTokenForAuthChallenge(JNIEnv* env, | 104 ScopedJavaLocalRef<jstring> GetTokenForAuthChallenge(JNIEnv* env, |
100 jobject obj, | 105 jobject obj, |
101 jstring host, | 106 jstring host, |
102 jstring realm); | 107 jstring realm); |
103 | 108 |
104 // Returns a Java string of the Data Reduction Proxy proxy list for HTTP | 109 // Returns a Java string of the Data Reduction Proxy proxy list for HTTP |
105 // origins as a semi-colon delimited list. | 110 // origins as a semi-colon delimited list. |
106 ScopedJavaLocalRef<jstring> GetHttpProxyList( | 111 ScopedJavaLocalRef<jstring> GetHttpProxyList( |
107 JNIEnv* env, | 112 JNIEnv* env, |
108 const base::android::JavaParamRef<jobject>& obj); | 113 const base::android::JavaParamRef<jobject>& obj); |
(...skipping 20 matching lines...) Expand all Loading... |
129 | 134 |
130 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, | 135 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, |
131 const char* pref_name); | 136 const char* pref_name); |
132 | 137 |
133 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); | 138 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); |
134 | 139 |
135 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 140 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
136 }; | 141 }; |
137 | 142 |
138 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 143 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
OLD | NEW |