summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_sspi_win.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 06:15:44 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 06:15:44 +0000
commit13c8a0903376ff406151679d8673a6452d721290 (patch)
treedbb5b8e9503f8d0ee447863089f3e6f23692910f /net/http/http_auth_sspi_win.h
parent6b55570f03236557b8b966b08dfbdda1ea91aadc (diff)
downloadchromium_src-13c8a0903376ff406151679d8673a6452d721290.zip
chromium_src-13c8a0903376ff406151679d8673a6452d721290.tar.gz
chromium_src-13c8a0903376ff406151679d8673a6452d721290.tar.bz2
Net: Convert username and password to string16.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3040016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_sspi_win.h')
-rw-r--r--net/http/http_auth_sspi_win.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/net/http/http_auth_sspi_win.h b/net/http/http_auth_sspi_win.h
index 95775ae..bf1778f 100644
--- a/net/http/http_auth_sspi_win.h
+++ b/net/http/http_auth_sspi_win.h
@@ -17,6 +17,7 @@
#include <string>
+#include "base/string16.h"
#include "net/http/http_auth.h"
namespace net {
@@ -93,14 +94,14 @@ class HttpAuthSSPI {
// 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 std::wstring* username,
- const std::wstring* password,
+ int GenerateAuthToken(const string16* username,
+ const string16* password,
const std::wstring& spn,
std::string* auth_token);
private:
- int OnFirstRound(const std::wstring* username,
- const std::wstring* password);
+ int OnFirstRound(const string16* username,
+ const string16* password);
int GetNextSecurityToken(
const std::wstring& spn,
@@ -126,9 +127,9 @@ class HttpAuthSSPI {
// If |combined| is of form "bar", |domain| will be empty and |user| will
// contain "bar".
// |domain| and |user| must be non-NULL.
-void SplitDomainAndUser(const std::wstring& combined,
- std::wstring* domain,
- std::wstring* user);
+void SplitDomainAndUser(const string16& combined,
+ string16* domain,
+ string16* user);
// Determines the maximum token length in bytes for a particular SSPI package.
//