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

Unified Diff: net/ftp/ftp_auth_cache.h

Issue 1151843002: DO NOT LAND Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 years, 7 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
Index: net/ftp/ftp_auth_cache.h
diff --git a/net/ftp/ftp_auth_cache.h b/net/ftp/ftp_auth_cache.h
index 526b3588782d062d47712c96848ec1a231f7c6f5..52172326f43836ff920d278c871ca8303a8cfb7b 100644
--- a/net/ftp/ftp_auth_cache.h
+++ b/net/ftp/ftp_auth_cache.h
@@ -9,7 +9,7 @@
#include "net/base/auth.h"
#include "net/base/net_export.h"
-#include "url/gurl.h"
+#include "url/origin.h"
namespace net {
@@ -27,10 +27,10 @@ class NET_EXPORT_PRIVATE FtpAuthCache {
static const size_t kMaxEntries;
struct Entry {
- Entry(const GURL& origin, const AuthCredentials& credentials);
+ Entry(const url::Origin& origin, const AuthCredentials& credentials);
~Entry();
- GURL origin;
+ url::Origin origin;
AuthCredentials credentials;
};
@@ -38,15 +38,15 @@ class NET_EXPORT_PRIVATE FtpAuthCache {
~FtpAuthCache();
// Return Entry corresponding to given |origin| or NULL if not found.
- Entry* Lookup(const GURL& origin);
+ Entry* Lookup(const url::Origin& origin);
// Add an entry for |origin| to the cache using |credentials|. If there is
// already an entry for |origin|, it will be overwritten.
- void Add(const GURL& origin, const AuthCredentials& credentials);
+ void Add(const url::Origin& origin, const AuthCredentials& credentials);
// Remove the entry for |origin| from the cache, if one exists and matches
// |credentials|.
- void Remove(const GURL& origin, const AuthCredentials& credentials);
+ void Remove(const url::Origin& origin, const AuthCredentials& credentials);
Ryan Sleevi 2015/05/22 02:50:03 So, overall, changes like this make me... Generall
private:
typedef std::list<Entry> EntryList;

Powered by Google App Engine
This is Rietveld 408576698