summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebRequest.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-11-24 10:38:33 +0000
committerIain Merrick <husky@google.com>2010-11-25 10:26:26 +0000
commit664dabb9afbb1d233a9b16a8f80f944cc01d4e7f (patch)
treea6e923797950a06e130d513de20e4d4dc08ff71c /WebKit/android/WebCoreSupport/WebRequest.h
parentfaae91c5ffddc81234758e14185d89b064fdb991 (diff)
downloadexternal_webkit-664dabb9afbb1d233a9b16a8f80f944cc01d4e7f.zip
external_webkit-664dabb9afbb1d233a9b16a8f80f944cc01d4e7f.tar.gz
external_webkit-664dabb9afbb1d233a9b16a8f80f944cc01d4e7f.tar.bz2
Set useCachedCredentials to true on first auth request.
This flag previously defaulted to false, but the Android CTS specifies that a "sufficient" implementation should return true on the first authentication request. (The second and subsequent auth requests aren't tested.) This CL sets the flag to true on the first authentication request for a given WebRequest, but false for subsequent requests (i.e., if the first attempt to authenticate failed). Using a counter rather than a flag in WebRequest for readability. "isFirstAuthRequest" would be a bit ambiguous as a member variable, but "authRequestCount" seems pretty clear. Change-Id: Id9baae4c30111f743e079f90940078b07498b168
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequest.h')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequest.h b/WebKit/android/WebCoreSupport/WebRequest.h
index 2bcbb92..98e2921 100644
--- a/WebKit/android/WebCoreSupport/WebRequest.h
+++ b/WebKit/android/WebCoreSupport/WebRequest.h
@@ -101,6 +101,7 @@ private:
std::string m_url;
std::string m_userAgent;
LoadState m_loadState;
+ int m_authRequestCount;
};
} // namespace android