summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r--net/http/http_auth_handler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h
index 0608f7b..3e74420 100644
--- a/net/http/http_auth_handler.h
+++ b/net/http/http_auth_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/ref_counted.h"
#include "net/http/http_auth.h"
namespace net {
@@ -18,15 +19,17 @@ class ProxyInfo;
// (basic, digest, ...)
// The registry mapping auth-schemes to implementations is hardcoded in
// HttpAuth::CreateAuthHandler().
-class HttpAuthHandler {
+class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> {
public:
+ virtual ~HttpAuthHandler() { }
+
// Initialize the handler by parsing a challenge string.
bool InitFromChallenge(std::string::const_iterator begin,
std::string::const_iterator end,
HttpAuth::Target target);
// Lowercase name of the auth scheme
- virtual std::string scheme() const {
+ std::string scheme() const {
return scheme_;
}