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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_store_file.h

Issue 220493003: Safebrowsing: change gethash caching to match api 2.3 rules, fix some corner cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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: chrome/browser/safe_browsing/safe_browsing_store_file.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.h b/chrome/browser/safe_browsing/safe_browsing_store_file.h
index c8a2429f21fd7ae74e7f71819ff5ba4ceebaa1e5..5625409cfb0837adf9401bba6659bd8f8cf84ee3 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.h
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.h
@@ -143,7 +143,6 @@ class SafeBrowsingStoreFile : public SafeBrowsingStore {
virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) OVERRIDE;
virtual bool WriteAddHash(int32 chunk_id,
- base::Time receive_time,
const SBFullHash& full_hash) OVERRIDE;
virtual bool WriteSubPrefix(int32 chunk_id,
int32 add_chunk_id, SBPrefix prefix) OVERRIDE;
@@ -152,10 +151,8 @@ class SafeBrowsingStoreFile : public SafeBrowsingStore {
virtual bool FinishChunk() OVERRIDE;
virtual bool BeginUpdate() OVERRIDE;
- // Store updates with pending add full hashes in file store and
- // return |add_prefixes_result| and |add_full_hashes_result|.
+ // Store updates in file store and return |add_full_hashes_result|.
Scott Hess - ex-Googler 2014/04/01 22:08:36 I see I didn't update the comment - should mention
mattm 2014/04/03 01:38:12 Done.
virtual bool FinishUpdate(
- const std::vector<SBAddFullHash>& pending_adds,
safe_browsing::PrefixSetBuilder* builder,
std::vector<SBAddFullHash>* add_full_hashes_result) OVERRIDE;
virtual bool CancelUpdate() OVERRIDE;
@@ -185,9 +182,8 @@ class SafeBrowsingStoreFile : public SafeBrowsingStore {
static bool DeleteStore(const base::FilePath& basename);
private:
- // Update store file with pending full hashes.
- virtual bool DoUpdate(const std::vector<SBAddFullHash>& pending_adds,
- safe_browsing::PrefixSetBuilder* builder,
+ // Update store file and return |add_full_hashes_result|.
+ virtual bool DoUpdate(safe_browsing::PrefixSetBuilder* builder,
std::vector<SBAddFullHash>* add_full_hashes_result);
// Enumerate different format-change events for histogramming

Powered by Google App Engine
This is Rietveld 408576698