summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_cache.h
diff options
context:
space:
mode:
authorchristiank@opera.com <christiank@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-14 14:23:45 +0000
committerchristiank@opera.com <christiank@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-14 14:23:45 +0000
commite8d9d914c5aa1ea3be92bc1039611c6620500b0f (patch)
tree5a12df0762ee8d401fd6ab5816639302d001216f /net/http/http_auth_cache.h
parent81d08aa6bcbf89f71d9b3cdd56c9a7a4be8048f4 (diff)
downloadchromium_src-e8d9d914c5aa1ea3be92bc1039611c6620500b0f.zip
chromium_src-e8d9d914c5aa1ea3be92bc1039611c6620500b0f.tar.gz
chromium_src-e8d9d914c5aa1ea3be92bc1039611c6620500b0f.tar.bz2
Add support for clearing the HTTP auth cache.
This patch adds an API so that the platform can clear the HTTP auth cache at will. This can be useful when clearing private browsing data to prevent cached credentials from being re-used. BUG=63723 Review URL: https://codereview.chromium.org/351833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_cache.h')
-rw-r--r--net/http/http_auth_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h
index 707a571..1867295 100644
--- a/net/http/http_auth_cache.h
+++ b/net/http/http_auth_cache.h
@@ -163,6 +163,9 @@ class NET_EXPORT_PRIVATE HttpAuthCache {
HttpAuth::Scheme scheme,
const AuthCredentials& credentials);
+ // Clears the cache.
+ void Clear();
+
// Updates a stale digest entry on server |origin| for realm |realm| and
// scheme |scheme|. The cached auth challenge is replaced with
// |auth_challenge| and the nonce count is reset.