Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1536)

Unified Diff: net/http/http_auth_controller.cc

Issue 3039028: Make HttpAuthController not reference counted. (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_controller.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_controller.cc
diff --git a/net/http/http_auth_controller.cc b/net/http/http_auth_controller.cc
index c077ee84d5cdbbc8e3c0c41241f4b23bed45153f..726c18267b15c89150ae8484aedda5e4de1669c3 100644
--- a/net/http/http_auth_controller.cc
+++ b/net/http/http_auth_controller.cc
@@ -219,8 +219,8 @@ int HttpAuthController::HandleAuthChallenge(
return OK;
}
-void HttpAuthController::ResetAuth(const std::wstring& username,
- const std::wstring& password) {
+void HttpAuthController::SetCredentials(const std::wstring& username,
+ const std::wstring& password) {
DCHECK(identity_.invalid || (username.empty() && password.empty()));
if (identity_.invalid) {
@@ -230,7 +230,9 @@ void HttpAuthController::ResetAuth(const std::wstring& username,
identity_.username = username;
identity_.password = password;
}
+}
+void HttpAuthController::PrepareForAuthRestart() {
DCHECK(identity_.source != HttpAuth::IDENT_SRC_PATH_LOOKUP);
// Add the auth entry to the cache before restarting. We don't know whether
« no previous file with comments | « net/http/http_auth_controller.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698