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

Unified Diff: components/safe_browsing_db/util.h

Issue 1556613002: Adds SB V4 response handler to Protocol Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@osb-pm-1
Patch Set: Rebase Created 4 years, 11 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
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/util.h
diff --git a/components/safe_browsing_db/util.h b/components/safe_browsing_db/util.h
index daa202ef8c9a072cdab5bf19eb6fe1e113afc95a..d2e46ee68fd14ada187b6db82257b3ea61fa8944 100644
--- a/components/safe_browsing_db/util.h
+++ b/components/safe_browsing_db/util.h
@@ -65,6 +65,9 @@ struct SBFullHashResult {
// TODO(shess): Refactor to allow ListType here.
int list_id;
std::string metadata;
+ // Used only for V4 results. The cache lifetime for this result. The response
+ // must not be cached for more than this duration to avoid false positives.
+ base::TimeDelta cache_duration;
};
// Caches individual response from GETHASH request.
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698