summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_basic.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_auth_handler_basic.h')
-rw-r--r--net/http/http_auth_handler_basic.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/net/http/http_auth_handler_basic.h b/net/http/http_auth_handler_basic.h
index 679c91a..e4d2f25 100644
--- a/net/http/http_auth_handler_basic.h
+++ b/net/http/http_auth_handler_basic.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,10 +12,17 @@ namespace net {
// Code for handling http basic authentication.
class HttpAuthHandlerBasic : public HttpAuthHandler {
public:
- virtual std::string GenerateCredentials(const std::wstring& username,
- const std::wstring& password,
- const HttpRequestInfo*,
- const ProxyInfo*);
+ virtual int GenerateAuthToken(const std::wstring& username,
+ const std::wstring& password,
+ const HttpRequestInfo*,
+ const ProxyInfo*,
+ std::string* auth_token);
+
+ virtual int GenerateDefaultAuthToken(const HttpRequestInfo* request,
+ const ProxyInfo* proxy,
+ std::string* auth_token);
+
+
protected:
virtual bool Init(std::string::const_iterator challenge_begin,
std::string::const_iterator challenge_end);