| Index: chrome/browser/safe_browsing/safe_browsing_store.h
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_store.h b/chrome/browser/safe_browsing/safe_browsing_store.h
|
| index 9463b1ca6af86b0b85861752012853bb8065be3a..f7aed5e648c406542e232b88b719c621c606fe58 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_store.h
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_store.h
|
| @@ -51,6 +51,8 @@ struct SBAddPrefix {
|
| SBPrefix GetAddPrefix() const { return prefix; }
|
| };
|
|
|
| +typedef std::deque<SBAddPrefix> SBAddPrefixes;
|
| +
|
| struct SBSubPrefix {
|
| int32 chunk_id;
|
| int32 add_chunk_id;
|
| @@ -138,7 +140,7 @@ bool SBAddPrefixHashLess(const T& a, const U& b) {
|
| // TODO(shess): The original code did not process |sub_full_hashes|
|
| // for matches in |add_full_hashes|, so this code doesn't, either. I
|
| // think this is probably a bug.
|
| -void SBProcessSubs(std::vector<SBAddPrefix>* add_prefixes,
|
| +void SBProcessSubs(SBAddPrefixes* add_prefixes,
|
| std::vector<SBSubPrefix>* sub_prefixes,
|
| std::vector<SBAddFullHash>* add_full_hashes,
|
| std::vector<SBSubFullHash>* sub_full_hashes,
|
| @@ -147,7 +149,7 @@ void SBProcessSubs(std::vector<SBAddPrefix>* add_prefixes,
|
|
|
| // Records a histogram of the number of items in |prefix_misses| which
|
| // are not in |add_prefixes|.
|
| -void SBCheckPrefixMisses(const std::vector<SBAddPrefix>& add_prefixes,
|
| +void SBCheckPrefixMisses(const SBAddPrefixes& add_prefixes,
|
| const std::set<SBPrefix>& prefix_misses);
|
|
|
| // TODO(shess): This uses int32 rather than int because it's writing
|
| @@ -174,7 +176,7 @@ class SafeBrowsingStore {
|
| virtual bool Delete() = 0;
|
|
|
| // Get all Add prefixes out from the store.
|
| - virtual bool GetAddPrefixes(std::vector<SBAddPrefix>* add_prefixes) = 0;
|
| + virtual bool GetAddPrefixes(SBAddPrefixes* add_prefixes) = 0;
|
|
|
| // Get all add full-length hashes.
|
| virtual bool GetAddFullHashes(
|
| @@ -230,7 +232,7 @@ class SafeBrowsingStore {
|
| virtual bool FinishUpdate(
|
| const std::vector<SBAddFullHash>& pending_adds,
|
| const std::set<SBPrefix>& prefix_misses,
|
| - std::vector<SBAddPrefix>* add_prefixes_result,
|
| + SBAddPrefixes* add_prefixes_result,
|
| std::vector<SBAddFullHash>* add_full_hashes_result) = 0;
|
|
|
| // Cancel the update in process and remove any temporary disk
|
|
|