Implement and test safe-browsing gethash cache for protocol v3.
commit9c60c96658aadc7de9601a9f7a7f3f0aeb52434e
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 28 Jun 2014 05:36:44 +0000 (28 05:36 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 28 Jun 2014 05:36:44 +0000 (28 05:36 +0000)
tree88c0c68fbd894057d1c078feed93708220fa921e
parent1120afabccebfc07f6d6990b2696508f4a2f5ccc
Implement and test safe-browsing gethash cache for protocol v3.

Unify the cache hit and miss structures.  As a result, items should only hit
from the cache or from the database, hitting both is not possible.  The cached
items take their lifetime from the GETHASH response.

BUG=357763

Review URL: https://codereview.chromium.org/334623011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280494 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/safe_browsing/database_manager.cc
chrome/browser/safe_browsing/safe_browsing_database.cc
chrome/browser/safe_browsing/safe_browsing_database.h
chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
chrome/browser/safe_browsing/safe_browsing_util.cc
chrome/browser/safe_browsing/safe_browsing_util.h