Index: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h |
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h |
index 10a00202aa00158abba10219aead00243140d228..f7d221c342c91343160d4e4da10f14010da0c3ce 100644 |
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h |
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h |
@@ -29,7 +29,6 @@ class DataReductionProxySettingsAndroid : public DataReductionProxySettings { |
void InitDataReductionProxySettings(JNIEnv* env, jobject obj); |
- |
void BypassHostPattern(JNIEnv* env, jobject obj, jstring pattern); |
// Add a URL pattern to bypass the proxy. Wildcards |
// should be compatible with the JavaScript function shExpMatch, which can be |
@@ -44,8 +43,6 @@ class DataReductionProxySettingsAndroid : public DataReductionProxySettings { |
jboolean IsDataReductionProxyPromoAllowed(JNIEnv* env, jobject obj); |
ScopedJavaLocalRef<jstring> GetDataReductionProxyOrigin(JNIEnv* env, |
jobject obj); |
- ScopedJavaLocalRef<jstring> GetDataReductionProxyAuth(JNIEnv* env, |
- jobject obj); |
jboolean IsDataReductionProxyEnabled(JNIEnv* env, jobject obj); |
jboolean IsDataReductionProxyManaged(JNIEnv* env, jobject obj); |
void SetDataReductionProxyEnabled(JNIEnv* env, jobject obj, jboolean enabled); |
@@ -61,6 +58,19 @@ class DataReductionProxySettingsAndroid : public DataReductionProxySettings { |
base::android::ScopedJavaLocalRef<jobject> GetContentLengths(JNIEnv* env, |
jobject obj); |
+ // Wrapper methods for handling auth challenges. In both of the following, |
+ // a net::AuthChallengeInfo object is created from |host| and |realm| and |
+ // passed in to the superclass method. |
+ jboolean IsAcceptableAuthChallenge(JNIEnv* env, |
+ jobject obj, |
+ jstring host, |
+ jstring realm); |
+ |
+ ScopedJavaLocalRef<jstring> GetTokenForAuthChallenge(JNIEnv* env, |
+ jobject obj, |
+ jstring host, |
+ jstring realm); |
+ |
// Registers the native methods to be call from Java. |
static bool Register(JNIEnv* env); |