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

Issue 280013002: [safe browsing] Switch to independent cache lifetimes for gethash items. (Closed)

Created:
6 years, 7 months ago by Scott Hess - ex-Googler
Modified:
6 years, 7 months ago
Reviewers:
mattm
CC:
chromium-reviews
Visibility:
Public.

Description

[safe browsing] Switch to independent cache lifetimes for gethash items. Previously cached gethash responses were valid either if the last update was recent enough, or if the item itself were recent enough. Switch to supporting independent item lifetimes to prepare for API v3 (which sends lifetime information from the server). BUG=357763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270003

Patch Set 1 #

Patch Set 2 : Bah, just use base::Time and be done. #

Total comments: 2

Patch Set 3 : const that lifetime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -191 lines) Patch
M chrome/browser/safe_browsing/database_manager.h View 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 4 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 6 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 6 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 8 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 1 2 31 chunks +73 lines, -126 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 3 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Scott Hess - ex-Googler
Pull a bit more out of https://codereview.chromium.org/220493003 I can't think of any reason why this ...
6 years, 7 months ago (2014-05-09 20:47:58 UTC) #1
mattm
lgtm with nit https://codereview.chromium.org/280013002/diff/20001/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc File chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (right): https://codereview.chromium.org/280013002/diff/20001/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc#newcode29 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc:29: TimeDelta kCacheLifetime = TimeDelta::FromMinutes(45); const?
6 years, 7 months ago (2014-05-12 21:56:27 UTC) #2
Scott Hess - ex-Googler
const that lifetime
6 years, 7 months ago (2014-05-12 23:10:34 UTC) #3
Scott Hess - ex-Googler
Thanks! https://codereview.chromium.org/280013002/diff/20001/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc File chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (right): https://codereview.chromium.org/280013002/diff/20001/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc#newcode29 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc:29: TimeDelta kCacheLifetime = TimeDelta::FromMinutes(45); On 2014/05/12 21:56:27, mattm ...
6 years, 7 months ago (2014-05-12 23:10:48 UTC) #4
Scott Hess - ex-Googler
The CQ bit was checked by shess@chromium.org
6 years, 7 months ago (2014-05-12 23:10:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/280013002/40001
6 years, 7 months ago (2014-05-12 23:12:25 UTC) #6
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 03:48:48 UTC) #7
Message was sent while issue was closed.
Change committed as 270003

Powered by Google App Engine
This is Rietveld 408576698