| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 jboolean IsDataReductionProxyManaged( | 60 jboolean IsDataReductionProxyManaged( |
| 61 JNIEnv* env, | 61 JNIEnv* env, |
| 62 const base::android::JavaParamRef<jobject>& obj); | 62 const base::android::JavaParamRef<jobject>& obj); |
| 63 void SetDataReductionProxyEnabled( | 63 void SetDataReductionProxyEnabled( |
| 64 JNIEnv* env, | 64 JNIEnv* env, |
| 65 const base::android::JavaParamRef<jobject>& obj, | 65 const base::android::JavaParamRef<jobject>& obj, |
| 66 jboolean enabled); | 66 jboolean enabled); |
| 67 jlong GetDataReductionLastUpdateTime( | 67 jlong GetDataReductionLastUpdateTime( |
| 68 JNIEnv* env, | 68 JNIEnv* env, |
| 69 const base::android::JavaParamRef<jobject>& obj); | 69 const base::android::JavaParamRef<jobject>& obj); |
| 70 jlong GetTotalHttpContentLengthSaved( |
| 71 JNIEnv* env, |
| 72 const base::android::JavaParamRef<jobject>& obj); |
| 70 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths( | 73 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths( |
| 71 JNIEnv* env, | 74 JNIEnv* env, |
| 72 const base::android::JavaParamRef<jobject>& obj); | 75 const base::android::JavaParamRef<jobject>& obj); |
| 73 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths( | 76 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths( |
| 74 JNIEnv* env, | 77 JNIEnv* env, |
| 75 const base::android::JavaParamRef<jobject>& obj); | 78 const base::android::JavaParamRef<jobject>& obj); |
| 76 | 79 |
| 77 // Return a Java |ContentLengths| object wrapping the results of a call to | 80 // Return a Java |ContentLengths| object wrapping the results of a call to |
| 78 // DataReductionProxySettings::GetContentLengths. | 81 // DataReductionProxySettings::GetContentLengths. |
| 79 base::android::ScopedJavaLocalRef<jobject> GetContentLengths( | 82 base::android::ScopedJavaLocalRef<jobject> GetContentLengths( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 122 |
| 120 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, | 123 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, |
| 121 const char* pref_name); | 124 const char* pref_name); |
| 122 | 125 |
| 123 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); | 126 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); |
| 124 | 127 |
| 125 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 128 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
| 126 }; | 129 }; |
| 127 | 130 |
| 128 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 131 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
| OLD | NEW |