diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 06:15:44 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 06:15:44 +0000 |
commit | 13c8a0903376ff406151679d8673a6452d721290 (patch) | |
tree | dbb5b8e9503f8d0ee447863089f3e6f23692910f /net/ftp/ftp_network_transaction.h | |
parent | 6b55570f03236557b8b966b08dfbdda1ea91aadc (diff) | |
download | chromium_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/ftp/ftp_network_transaction.h')
-rw-r--r-- | net/ftp/ftp_network_transaction.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/ftp/ftp_network_transaction.h b/net/ftp/ftp_network_transaction.h index 6b2a1f8..3732157 100644 --- a/net/ftp/ftp_network_transaction.h +++ b/net/ftp/ftp_network_transaction.h @@ -6,13 +6,14 @@ #define NET_FTP_FTP_NETWORK_TRANSACTION_H_ #pragma once -#include <string> #include <queue> +#include <string> #include <utility> #include <vector> #include "base/ref_counted.h" #include "base/scoped_ptr.h" +#include "base/string16.h" #include "net/base/address_list.h" #include "net/base/host_resolver.h" #include "net/base/net_log.h" @@ -37,8 +38,8 @@ class FtpNetworkTransaction : public FtpTransaction { CompletionCallback* callback, const BoundNetLog& net_log); virtual int Stop(int error); - virtual int RestartWithAuth(const std::wstring& username, - const std::wstring& password, + virtual int RestartWithAuth(const string16& username, + const string16& password, CompletionCallback* callback); virtual int RestartIgnoringLastError(CompletionCallback* callback); virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); @@ -201,10 +202,8 @@ class FtpNetworkTransaction : public FtpTransaction { // EPSV fail, we fall back to PASV for the duration of connection. bool use_epsv_; - // We get username and password as wstrings in RestartWithAuth, so they are - // also kept as wstrings here. - std::wstring username_; - std::wstring password_; + string16 username_; + string16 password_; // Current directory on the remote server, as returned by last PWD command, // with any trailing slash removed. |