| Index: net/ftp/ftp_auth_cache.h
|
| ===================================================================
|
| --- net/ftp/ftp_auth_cache.h (revision 53997)
|
| +++ net/ftp/ftp_auth_cache.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -7,8 +7,8 @@
|
| #pragma once
|
|
|
| #include <list>
|
| -#include <string>
|
|
|
| +#include "base/string16.h"
|
| #include "googleurl/src/gurl.h"
|
|
|
| namespace net {
|
| @@ -27,16 +27,16 @@
|
| static const size_t kMaxEntries;
|
|
|
| struct Entry {
|
| - Entry(const GURL& origin, const std::wstring& username,
|
| - const std::wstring& password)
|
| + Entry(const GURL& origin, const string16& username,
|
| + const string16& password)
|
| : origin(origin),
|
| username(username),
|
| password(password) {
|
| }
|
|
|
| const GURL origin;
|
| - std::wstring username;
|
| - std::wstring password;
|
| + string16 username;
|
| + string16 password;
|
| };
|
|
|
| FtpAuthCache() {}
|
| @@ -48,13 +48,13 @@
|
| // Add an entry for |origin| to the cache (consisting of |username| and
|
| // |password|). If there is already an entry for |origin|, it will be
|
| // overwritten.
|
| - void Add(const GURL& origin, const std::wstring& username,
|
| - const std::wstring& password);
|
| + void Add(const GURL& origin, const string16& username,
|
| + const string16& password);
|
|
|
| // Remove the entry for |origin| from the cache, if one exists and matches
|
| // |username| and |password|.
|
| - void Remove(const GURL& origin, const std::wstring& username,
|
| - const std::wstring& password);
|
| + void Remove(const GURL& origin, const string16& username,
|
| + const string16& password);
|
|
|
| private:
|
| typedef std::list<Entry> EntryList;
|
|
|