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

Unified Diff: net/http/http_auth_sspi_win.h

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comments Created 9 years, 2 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_handler_unittest.cc ('k') | net/http/http_auth_sspi_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_sspi_win.h
diff --git a/net/http/http_auth_sspi_win.h b/net/http/http_auth_sspi_win.h
index b3ef3c9581ff23057492ae52d4eded9531b4b13c..e33dcc591286435b42bed218815187afa4300454 100644
--- a/net/http/http_auth_sspi_win.h
+++ b/net/http/http_auth_sspi_win.h
@@ -142,11 +142,9 @@ class NET_EXPORT_PRIVATE HttpAuthSSPI {
// If the return value is not |OK|, then the value of |*auth_token| is
// unspecified. ERR_IO_PENDING is not a valid return code.
// If this is the first round of a multiple round scheme, credentials are
- // obtained using |*username| and |*password|. If |username| and |password|
- // are both NULL, the credentials for the currently logged in user are used
- // instead.
- int GenerateAuthToken(const string16* username,
- const string16* password,
+ // obtained using |*credentials|. If |credentials| is NULL, the credentials
+ // for the currently logged in user are used instead.
+ int GenerateAuthToken(const AuthCredentials* credentials,
const std::wstring& spn,
std::string* auth_token);
@@ -156,7 +154,7 @@ class NET_EXPORT_PRIVATE HttpAuthSSPI {
void Delegate();
private:
- int OnFirstRound(const string16* username, const string16* password);
+ int OnFirstRound(const AuthCredentials* credentials);
int GetNextSecurityToken(
const std::wstring& spn,
« no previous file with comments | « net/http/http_auth_handler_unittest.cc ('k') | net/http/http_auth_sspi_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698