Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h

Issue 384853002: Add notification of data reduction proxy field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 IsInAltFieldTrial(JNIEnv* env, jobject obj);
marq (ping after 24h) 2014/07/11 16:16:11 This should be named to match the superclass metho
bengr 2014/07/11 21:39:42 Actually, I can't use the word "Alternative" becau
marq (ping after 24h) 2014/07/11 23:53:46 Awesome feature. I'm sure that never causes proble
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698