Index: net/http/http_auth_handler.cc |
diff --git a/net/http/http_auth_handler.cc b/net/http/http_auth_handler.cc |
index d9c114c8506b8f939472444009d556fd03c36993..fe6d49fe1ea2c5f148631ad7c4f0cbd34a8a2cca 100644 |
--- a/net/http/http_auth_handler.cc |
+++ b/net/http/http_auth_handler.cc |
@@ -21,15 +21,28 @@ HttpAuthHandler::~HttpAuthHandler() { |
int HttpAuthHandler::HandleInitialChallenge( |
const HttpAuthChallengeTokenizer& challenge, |
+ const HttpResponseInfo& response_info, |
HttpAuth::Target target, |
const GURL& origin, |
- const BoundNetLog& net_log) { |
+ const BoundNetLog& net_log, |
+ const CompletionCallback& callback) { |
origin_ = origin; |
target_ = target; |
net_log_ = net_log; |
auth_challenge_ = challenge.challenge_text(); |
- return Init(challenge); |
+ return InitializeFromChallengeInternal(challenge, response_info, callback); |
+} |
+ |
+int HttpAuthHandler::InitializeFromCacheEntry(HttpAuthCache::Entry* cache_entry, |
+ HttpAuth::Target target, |
+ const BoundNetLog& net_log) { |
+ origin_ = cache_entry->origin(); |
+ target_ = target; |
+ net_log_ = net_log; |
+ |
+ auth_challenge_ = cache_entry->auth_challenge(); |
+ return InitializeFromCacheEntryInternal(cache_entry); |
} |
namespace { |