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

Unified Diff: net/http/http_cache.h

Issue 1897033002: Reland 'Convert //net and //chromecast to std::unordered_*' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix TestDownloadRequestHandler Created 4 years, 8 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/dns/dns_hosts.h ('k') | net/http/http_response_headers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 230a7f5bcef2a2529b1db73b6e99bd400e7c6005..7a8f8ffe2b4ecf6149d82156b603f2c64420496f 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -18,8 +18,8 @@
#include <memory>
#include <set>
#include <string>
+#include <unordered_map>
-#include "base/containers/hash_tables.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -261,10 +261,10 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
bool doomed;
};
- typedef base::hash_map<std::string, ActiveEntry*> ActiveEntriesMap;
- typedef base::hash_map<std::string, PendingOp*> PendingOpsMap;
- typedef std::set<ActiveEntry*> ActiveEntriesSet;
- typedef base::hash_map<std::string, int> PlaybackCacheMap;
+ using ActiveEntriesMap = std::unordered_map<std::string, ActiveEntry*>;
+ using PendingOpsMap = std::unordered_map<std::string, PendingOp*>;
+ using ActiveEntriesSet = std::set<ActiveEntry*>;
+ using PlaybackCacheMap = std::unordered_map<std::string, int>;
// Methods ------------------------------------------------------------------
« no previous file with comments | « net/dns/dns_hosts.h ('k') | net/http/http_response_headers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698