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

Unified Diff: components/safe_browsing_db/v4_store.h

Issue 2218723002: Simple: Move PVer4 related code from util.* to v4_protocol_manager_util.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tiny: Remove a comment Created 4 years, 4 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_store.h
diff --git a/components/safe_browsing_db/v4_store.h b/components/safe_browsing_db/v4_store.h
index 94621e5281cac0682e505c695513c4090bfb7b22..fd798883c0e34b4d070b42b7cbbcfc3b4ab04850 100644
--- a/components/safe_browsing_db/v4_store.h
+++ b/components/safe_browsing_db/v4_store.h
@@ -18,16 +18,6 @@ class V4Store;
typedef base::Callback<void(std::unique_ptr<V4Store>)>
UpdatedStoreReadyCallback;
-// The size of the hash prefix, in bytes. It should be between 4 to 32 (full
-// hash).
-typedef size_t PrefixSize;
-
-// A hash prefix sent by the SafeBrowsing PVer4 service.
-typedef std::string HashPrefix;
-
-// The sorted list of hash prefixes.
-typedef std::string HashPrefixes;
-
// Stores the list of sorted hash prefixes, by size.
// For instance: {4: ["abcd", "bcde", "cdef", "gggg"], 5: ["fffff"]}
typedef base::hash_map<PrefixSize, HashPrefixes> HashPrefixMap;
@@ -38,9 +28,6 @@ typedef base::hash_map<PrefixSize, HashPrefixes> HashPrefixMap;
// 3 hash prefixes of length 4, and 1 hash prefix of length 5.
typedef base::hash_map<PrefixSize, HashPrefixes::const_iterator> IteratorMap;
-// A full SHA256 hash.
-typedef HashPrefix FullHash;
-
// Enumerate different failure events while parsing the file read from disk for
// histogramming purposes. DO NOT CHANGE THE ORDERING OF THESE VALUES.
enum StoreReadResult {

Powered by Google App Engine
This is Rietveld 408576698