diff options
Diffstat (limited to 'net/ftp/ftp_auth_cache.h')
-rw-r--r-- | net/ftp/ftp_auth_cache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ftp/ftp_auth_cache.h b/net/ftp/ftp_auth_cache.h index c63828d..1a5b088 100644 --- a/net/ftp/ftp_auth_cache.h +++ b/net/ftp/ftp_auth_cache.h @@ -7,8 +7,8 @@ #include <list> -#include "net/base/auth.h" #include "googleurl/src/gurl.h" +#include "net/base/auth.h" namespace net { @@ -22,12 +22,12 @@ namespace net { // GURL("ftp://myserver/PATH") -- WRONG, paths not allowed class FtpAuthCache { public: - FtpAuthCache() {} - ~FtpAuthCache() {} - // Maximum number of entries we allow in the cache. static const size_t kMaxEntries; + FtpAuthCache() {} + ~FtpAuthCache() {} + // Check if we have authentication data for ftp server at |origin|. // Returns the address of corresponding AuthData object (if found) or NULL // (if not found). @@ -53,7 +53,7 @@ class FtpAuthCache { typedef std::list<Entry> EntryList; // Return Entry corresponding to given |origin| or NULL if not found. - Entry* LookupByOrigin(const GURL& origin); + Entry* LookupEntry(const GURL& origin); // Internal representation of cache, an STL list. This makes lookups O(n), // but we expect n to be very low. |