diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 14:07:08 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 14:07:08 +0000 |
commit | 26d84b0594fd08b9b748787a551a14722dc754f9 (patch) | |
tree | 9f189304abea641b632102cf524e67653581adef /net/http/http_auth_handler.h | |
parent | 2b8cf90084f83ee5901caeeb84bd5bc9e620f31f (diff) | |
download | chromium_src-26d84b0594fd08b9b748787a551a14722dc754f9.zip chromium_src-26d84b0594fd08b9b748787a551a14722dc754f9.tar.gz chromium_src-26d84b0594fd08b9b748787a551a14722dc754f9.tar.bz2 |
Don't try to use explicit credentials with schemes that don't support it.
BUG=94617
TEST=net_unittests --gtest_filter=HttpAuthControllerTest.NoExplicitCredentialsAllowed.
Review URL: http://codereview.chromium.org/7748033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r-- | net/http/http_auth_handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h index f4e35a4..8f237e8 100644 --- a/net/http/http_auth_handler.h +++ b/net/http/http_auth_handler.h @@ -135,6 +135,11 @@ class NET_EXPORT_PRIVATE HttpAuthHandler { // TODO(cbentzel): Add a pointer to Firefox documentation about risk. virtual bool AllowsDefaultCredentials(); + // Returns whether explicit credentials can be used with this handler. If + // true the user may be prompted for credentials if an implicit identity + // cannot be determined. + virtual bool AllowsExplicitCredentials(); + protected: enum Property { ENCRYPTS_IDENTITY = 1 << 0, |