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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h

Issue 30883003: Simple fallback implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patched
Patch Set: Updated javadocs. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698