| 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 <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const base::android::JavaParamRef<jobject>& obj); | 67 const base::android::JavaParamRef<jobject>& obj); |
| 68 jlong GetTotalHttpContentLengthSaved( | 68 jlong GetTotalHttpContentLengthSaved( |
| 69 JNIEnv* env, | 69 JNIEnv* env, |
| 70 const base::android::JavaParamRef<jobject>& obj); | 70 const base::android::JavaParamRef<jobject>& obj); |
| 71 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths( | 71 ScopedJavaLocalRef<jlongArray> GetDailyOriginalContentLengths( |
| 72 JNIEnv* env, | 72 JNIEnv* env, |
| 73 const base::android::JavaParamRef<jobject>& obj); | 73 const base::android::JavaParamRef<jobject>& obj); |
| 74 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths( | 74 ScopedJavaLocalRef<jlongArray> GetDailyReceivedContentLengths( |
| 75 JNIEnv* env, | 75 JNIEnv* env, |
| 76 const base::android::JavaParamRef<jobject>& obj); | 76 const base::android::JavaParamRef<jobject>& obj); |
| 77 ScopedJavaLocalRef<jstring> GetDataReductionProxyPassThroughHeader( |
| 78 JNIEnv* env, |
| 79 const base::android::JavaParamRef<jobject>& obj); |
| 77 | 80 |
| 78 // Return a Java |ContentLengths| object wrapping the results of a call to | 81 // Return a Java |ContentLengths| object wrapping the results of a call to |
| 79 // DataReductionProxySettings::GetContentLengths. | 82 // DataReductionProxySettings::GetContentLengths. |
| 80 base::android::ScopedJavaLocalRef<jobject> GetContentLengths( | 83 base::android::ScopedJavaLocalRef<jobject> GetContentLengths( |
| 81 JNIEnv* env, | 84 JNIEnv* env, |
| 82 const base::android::JavaParamRef<jobject>& obj); | 85 const base::android::JavaParamRef<jobject>& obj); |
| 83 | 86 |
| 84 // Determines whether the data reduction proxy is unreachable. This is | 87 // Determines whether the data reduction proxy is unreachable. This is |
| 85 // done by keeping a count of requests which go through proxy vs those | 88 // done by keeping a count of requests which go through proxy vs those |
| 86 // which should have gone through the proxy based on the config. | 89 // which should have gone through the proxy based on the config. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const char* pref_name); | 143 const char* pref_name); |
| 141 | 144 |
| 142 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); | 145 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); |
| 143 | 146 |
| 144 base::WeakPtrFactory<DataReductionProxySettingsAndroid> weak_factory_; | 147 base::WeakPtrFactory<DataReductionProxySettingsAndroid> weak_factory_; |
| 145 | 148 |
| 146 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); | 149 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ | 152 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ |
| OLD | NEW |