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

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
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;
Nathan Parker 2016/01/11 23:50:32 How does this relate to the SBCachedFullHashResult
kcarattini 2016/01/12 00:43:34 SBCachedFullHashResult is used by the database, an
};
// Caches individual response from GETHASH request.

Powered by Google App Engine
This is Rietveld 408576698