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

Unified Diff: net/http/http_auth_gssapi_posix.h

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments 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.cc ('k') | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_gssapi_posix.h
===================================================================
--- net/http/http_auth_gssapi_posix.h (revision 53997)
+++ net/http/http_auth_gssapi_posix.h (working copy)
@@ -10,6 +10,7 @@
#include "base/gtest_prod_util.h"
#include "base/native_library.h"
+#include "base/string16.h"
#include "net/http/http_auth.h"
#define GSS_USE_FUNCTION_POINTERS
@@ -201,7 +202,7 @@
// scope.
class ScopedSecurityContext {
public:
- ScopedSecurityContext(GSSAPILibrary* gssapi_lib);
+ explicit ScopedSecurityContext(GSSAPILibrary* gssapi_lib);
~ScopedSecurityContext();
const gss_ctx_id_t get() const { return security_context_; }
@@ -238,21 +239,21 @@
// If this is the first round of a multiple round scheme, credentials are
// obtained using |*username| and |*password|. If |username| and |password|
// are NULL, the default credentials 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,
gss_buffer_t in_token,
gss_buffer_t out_token);
std::string scheme_;
- std::wstring username_;
- std::wstring password_;
+ string16 username_;
+ string16 password_;
gss_OID gss_oid_;
GSSAPILibrary* library_;
std::string decoded_server_auth_token_;
Property changes on: net/http/http_auth_gssapi_posix.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698