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, |