| 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 17 matching lines...) Expand all Loading... |
| 28 // be called from there. | 28 // be called from there. |
| 29 class DataReductionProxySettingsAndroid { | 29 class DataReductionProxySettingsAndroid { |
| 30 public: | 30 public: |
| 31 DataReductionProxySettingsAndroid(); | 31 DataReductionProxySettingsAndroid(); |
| 32 | 32 |
| 33 virtual ~DataReductionProxySettingsAndroid(); | 33 virtual ~DataReductionProxySettingsAndroid(); |
| 34 | 34 |
| 35 void InitDataReductionProxySettings(Profile* profile); | 35 void InitDataReductionProxySettings(Profile* profile); |
| 36 | 36 |
| 37 // JNI wrapper interfaces to the indentically-named superclass methods. | 37 // JNI wrapper interfaces to the indentically-named superclass methods. |
| 38 jboolean IsDataReductionProxyAllowed( | |
| 39 JNIEnv* env, | |
| 40 const base::android::JavaParamRef<jobject>& obj); | |
| 41 jboolean IsDataReductionProxyPromoAllowed( | 38 jboolean IsDataReductionProxyPromoAllowed( |
| 42 JNIEnv* env, | 39 JNIEnv* env, |
| 43 const base::android::JavaParamRef<jobject>& obj); | 40 const base::android::JavaParamRef<jobject>& obj); |
| 44 jboolean IsDataReductionProxyEnabled( | 41 jboolean IsDataReductionProxyEnabled( |
| 45 JNIEnv* env, | 42 JNIEnv* env, |
| 46 const base::android::JavaParamRef<jobject>& obj); | 43 const base::android::JavaParamRef<jobject>& obj); |
| 47 jboolean CanUseDataReductionProxy( | 44 jboolean CanUseDataReductionProxy( |
| 48 JNIEnv* env, | 45 JNIEnv* env, |
| 49 const base::android::JavaParamRef<jobject>& obj, | 46 const base::android::JavaParamRef<jobject>& obj, |
| 50 const base::android::JavaParamRef<jstring>& url); | 47 const base::android::JavaParamRef<jstring>& url); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 119 |
| 123 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, | 120 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, |
| 124 const char* pref_name); | 121 const char* pref_name); |
| 125 | 122 |
| 126 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); | 123 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); |
| 127 | 124 |
| 128 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 125 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 128 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
| OLD | NEW |