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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.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: rebase (including 227613008) Created 6 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
Index: chrome/browser/safe_browsing/protocol_manager.h
diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h
index d53fbeaa665fbbd530d564a705f5cc91c63bf252..5588b697540f551f5616a956d84f03d25c36cf5b 100644
--- a/chrome/browser/safe_browsing/protocol_manager.h
+++ b/chrome/browser/safe_browsing/protocol_manager.h
@@ -59,10 +59,10 @@ class SafeBrowsingProtocolManager : public net::URLFetcherDelegate,
// Parameters:
// - The vector of full hash results. If empty, indicates that there
// were no matches, and that the resource is safe.
- // - Whether the result can be cached. This may not be the case when
- // the result did not come from the SB server, for example.
+ // - The cache lifetime of the result. A lifetime of 0 indicates the results
+ // should not be cached.
typedef base::Callback<void(const std::vector<SBFullHashResult>&,
- bool)> FullHashCallback;
+ const base::TimeDelta&)> FullHashCallback;
virtual ~SafeBrowsingProtocolManager();
« no previous file with comments | « chrome/browser/safe_browsing/database_manager_unittest.cc ('k') | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698