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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java

Issue 11663006: [Android WebView] Count the number of HTTP auth attempts we make. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java b/android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java
index a86eb2a4e618237e56cc39d1cb3d478cdeb451cc..a7fc3393eb16f937fe5abe587f3969777bca13d2 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwHttpAuthHandler.java
@@ -11,6 +11,7 @@ import org.chromium.base.JNINamespace;
public class AwHttpAuthHandler {
private int mNativeAwHttpAuthHandler;
+ private boolean mFirstAttempt;
joth 2012/12/21 18:59:43 could make this final. mNativeAwHttpAuthHandler c
public void proceed(String username, String password) {
nativeProceed(mNativeAwHttpAuthHandler, username, password);
@@ -20,13 +21,18 @@ public class AwHttpAuthHandler {
nativeCancel(mNativeAwHttpAuthHandler);
}
+ public boolean isFirstAttempt() {
+ return mFirstAttempt;
+ }
+
@CalledByNative
- public static AwHttpAuthHandler create(int nativeAwAuthHandler) {
- return new AwHttpAuthHandler(nativeAwAuthHandler);
+ public static AwHttpAuthHandler create(int nativeAwAuthHandler, boolean firstAttempt) {
+ return new AwHttpAuthHandler(nativeAwAuthHandler, firstAttempt);
}
- private AwHttpAuthHandler(int nativeAwHttpAuthHandler) {
+ private AwHttpAuthHandler(int nativeAwHttpAuthHandler, boolean firstAttempt) {
mNativeAwHttpAuthHandler = nativeAwHttpAuthHandler;
+ mFirstAttempt = firstAttempt;
}
private native void nativeProceed(int nativeAwHttpAuthHandler,

Powered by Google App Engine
This is Rietveld 408576698