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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 virtual ~DataReductionProxySettingsAndroid(); | 32 virtual ~DataReductionProxySettingsAndroid(); |
33 | 33 |
34 void InitDataReductionProxySettings(Profile* profile); | 34 void InitDataReductionProxySettings(Profile* profile); |
35 | 35 |
36 // JNI wrapper interfaces to the indentically-named superclass methods. | 36 // JNI wrapper interfaces to the indentically-named superclass methods. |
37 jboolean IsDataReductionProxyAllowed(JNIEnv* env, jobject obj); | 37 jboolean IsDataReductionProxyAllowed(JNIEnv* env, jobject obj); |
38 jboolean IsDataReductionProxyPromoAllowed(JNIEnv* env, jobject obj); | 38 jboolean IsDataReductionProxyPromoAllowed(JNIEnv* env, jobject obj); |
39 jboolean IsIncludedInAltFieldTrial(JNIEnv* env, jobject obj); | 39 jboolean IsIncludedInAltFieldTrial(JNIEnv* env, jobject obj); |
40 jboolean IsDataReductionProxyEnabled(JNIEnv* env, jobject obj); | 40 jboolean IsDataReductionProxyEnabled(JNIEnv* env, jobject obj); |
| 41 jboolean IsLoFiEnabled(JNIEnv* env, jobject obj); |
41 jboolean IsDataReductionProxyManaged(JNIEnv* env, jobject obj); | 42 jboolean IsDataReductionProxyManaged(JNIEnv* env, jobject obj); |
42 void SetDataReductionProxyEnabled(JNIEnv* env, jobject obj, jboolean enabled); | 43 void SetDataReductionProxyEnabled(JNIEnv* env, jobject obj, jboolean enabled); |
43 | 44 |
44 jlong GetDataReductionLastUpdateTime(JNIEnv* env, jobject obj); | 45 jlong GetDataReductionLastUpdateTime(JNIEnv* env, jobject obj); |
45 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths(JNIEnv* env, | 46 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths(JNIEnv* env, |
46 jobject obj); | 47 jobject obj); |
47 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths(JNIEnv* env, | 48 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths(JNIEnv* env, |
48 jobject obj); | 49 jobject obj); |
49 | 50 |
50 // Return a Java |ContentLengths| object wrapping the results of a call to | 51 // Return a Java |ContentLengths| object wrapping the results of a call to |
(...skipping 22 matching lines...) Expand all Loading... |
73 | 74 |
74 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, | 75 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, |
75 const char* pref_name); | 76 const char* pref_name); |
76 | 77 |
77 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); | 78 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 80 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
80 }; | 81 }; |
81 | 82 |
82 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 83 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
OLD | NEW |