| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void BypassHostPattern(JNIEnv* env, jobject obj, jstring pattern); | 43 void BypassHostPattern(JNIEnv* env, jobject obj, jstring pattern); |
| 44 // Add a URL pattern to bypass the proxy. Wildcards | 44 // Add a URL pattern to bypass the proxy. Wildcards |
| 45 // should be compatible with the JavaScript function shExpMatch, which can be | 45 // should be compatible with the JavaScript function shExpMatch, which can be |
| 46 // used in proxy PAC resolution. These functions must only be called before | 46 // used in proxy PAC resolution. These functions must only be called before |
| 47 // the proxy is used. | 47 // the proxy is used. |
| 48 void BypassURLPattern(JNIEnv* env, jobject obj, jstring pattern); | 48 void BypassURLPattern(JNIEnv* env, jobject obj, jstring pattern); |
| 49 | 49 |
| 50 // JNI wrapper interfaces to the indentically-named superclass methods. | 50 // JNI wrapper interfaces to the indentically-named superclass methods. |
| 51 jboolean IsDataReductionProxyAllowed(JNIEnv* env, jobject obj); | 51 jboolean IsDataReductionProxyAllowed(JNIEnv* env, jobject obj); |
| 52 jboolean IsDataReductionProxyPromoAllowed(JNIEnv* env, jobject obj); | 52 jboolean IsDataReductionProxyPromoAllowed(JNIEnv* env, jobject obj); |
| 53 jboolean IsIncludedInAltFieldTrial(JNIEnv* env, jobject obj); |
| 53 ScopedJavaLocalRef<jstring> GetDataReductionProxyOrigin(JNIEnv* env, | 54 ScopedJavaLocalRef<jstring> GetDataReductionProxyOrigin(JNIEnv* env, |
| 54 jobject obj); | 55 jobject obj); |
| 55 jboolean IsDataReductionProxyEnabled(JNIEnv* env, jobject obj); | 56 jboolean IsDataReductionProxyEnabled(JNIEnv* env, jobject obj); |
| 56 jboolean IsDataReductionProxyManaged(JNIEnv* env, jobject obj); | 57 jboolean IsDataReductionProxyManaged(JNIEnv* env, jobject obj); |
| 57 void SetDataReductionProxyEnabled(JNIEnv* env, jobject obj, jboolean enabled); | 58 void SetDataReductionProxyEnabled(JNIEnv* env, jobject obj, jboolean enabled); |
| 58 | 59 |
| 59 jlong GetDataReductionLastUpdateTime(JNIEnv* env, jobject obj); | 60 jlong GetDataReductionLastUpdateTime(JNIEnv* env, jobject obj); |
| 60 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths(JNIEnv* env, | 61 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths(JNIEnv* env, |
| 61 jobject obj); | 62 jobject obj); |
| 62 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths(JNIEnv* env, | 63 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths(JNIEnv* env, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 TestGetDailyContentLengths); | 98 TestGetDailyContentLengths); |
| 98 | 99 |
| 99 | 100 |
| 100 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, | 101 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, |
| 101 const char* pref_name); | 102 const char* pref_name); |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 104 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 107 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
| OLD | NEW |