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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.h

Issue 2830093003: Replace uses of hash_map in //base (Closed)
Patch Set: iOS Created 3 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 | « components/leveldb_proto/testing/fake_db.h ('k') | components/safe_browsing_db/v4_protocol_manager_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_get_hash_protocol_manager.h
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.h b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
index 8a0f855da504051de934ce083b12ba1246e2802e..7d9c2c2aff17e9a3ef47812e0c1446ea7695b15d 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
@@ -14,6 +14,7 @@
#include <memory>
#include <string>
+#include <unordered_map>
#include <utility>
#include <vector>
@@ -39,7 +40,7 @@ namespace safe_browsing {
// The matching hash prefixes and corresponding stores, for each full hash
// generated for a given URL.
-typedef base::hash_map<FullHash, StoreAndHashPrefixes>
+typedef std::unordered_map<FullHash, StoreAndHashPrefixes>
FullHashToStoreAndHashPrefixesMap;
// ----------------------------------------------------------------
@@ -90,7 +91,7 @@ struct CachedHashPrefixInfo {
// Cached full hashes received from the server for the corresponding hash
// prefixes.
-typedef base::hash_map<HashPrefix, CachedHashPrefixInfo> FullHashCache;
+typedef std::unordered_map<HashPrefix, CachedHashPrefixInfo> FullHashCache;
// FullHashCallback is invoked when GetFullHashes completes. The parameter is
// the vector of full hash results. If empty, indicates that there were no
@@ -295,8 +296,8 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
private:
// Map of GetHash requests to parameters which created it.
using PendingHashRequests =
- base::hash_map<const net::URLFetcher*,
- std::unique_ptr<FullHashCallbackInfo>>;
+ std::unordered_map<const net::URLFetcher*,
+ std::unique_ptr<FullHashCallbackInfo>>;
// The factory that controls the creation of V4GetHashProtocolManager.
// This is used by tests.
« no previous file with comments | « components/leveldb_proto/testing/fake_db.h ('k') | components/safe_browsing_db/v4_protocol_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698