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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.h

Issue 2345573002: Each DatabaseManager gets to decide which stores to track (Closed)
Patch Set: Incorporated nparker@ feedback Created 4 years, 3 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: 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 6b2fbc56cf35e228730d099222c9c2d63256549f..45c8fa45ae47da6d2ef916fb766d7dd70549be2f 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
@@ -147,7 +147,7 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
// Create an instance of the safe browsing v4 protocol manager.
static std::unique_ptr<V4GetHashProtocolManager> Create(
net::URLRequestContextGetter* request_context_getter,
- const base::hash_set<UpdateListIdentifier>& stores_to_request,
+ const std::unordered_set<UpdateListIdentifier>& stores_to_request,
const V4ProtocolConfig& config);
// Makes the passed |factory| the factory used to instantiate
@@ -187,7 +187,7 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
// network requests using |request_context_getter|.
V4GetHashProtocolManager(
net::URLRequestContextGetter* request_context_getter,
- const base::hash_set<UpdateListIdentifier>& stores_to_request,
+ const std::unordered_set<UpdateListIdentifier>& stores_to_request,
const V4ProtocolConfig& config);
private:
@@ -255,7 +255,7 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
// permission API metadata for full hashes in those |full_hash_infos| that
// have a full hash in |full_hashes|.
void OnFullHashForApi(const ThreatMetadataForApiCallback& api_callback,
- const base::hash_set<FullHash>& full_hashes,
+ const std::unordered_set<FullHash>& full_hashes,
const std::vector<FullHashInfo>& full_hash_infos);
// Parses a FindFullHashesResponse protocol buffer and fills the results in
@@ -331,9 +331,9 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
// The following sets represent the combination of lists that we would always
// request from the server, irrespective of which list we found the hash
// prefix match in.
- base::hash_set<PlatformType> platform_types_;
- base::hash_set<ThreatEntryType> threat_entry_types_;
- base::hash_set<ThreatType> threat_types_;
+ std::unordered_set<PlatformType> platform_types_;
+ std::unordered_set<ThreatEntryType> threat_entry_types_;
+ std::unordered_set<ThreatType> threat_types_;
DISALLOW_COPY_AND_ASSIGN(V4GetHashProtocolManager);
};
@@ -345,7 +345,7 @@ class V4GetHashProtocolManagerFactory {
virtual ~V4GetHashProtocolManagerFactory() {}
virtual std::unique_ptr<V4GetHashProtocolManager> CreateProtocolManager(
net::URLRequestContextGetter* request_context_getter,
- const base::hash_set<UpdateListIdentifier>& stores_to_request,
+ const std::unordered_set<UpdateListIdentifier>& stores_to_request,
const V4ProtocolConfig& config) = 0;
private:

Powered by Google App Engine
This is Rietveld 408576698