Incremental PrefixSet builder for Safe Browsing store.
commit2b7dea8f59e2517df1cd8bfba3dd90ce260dafc3
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 18 Mar 2014 20:41:06 +0000 (18 20:41 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 18 Mar 2014 20:41:06 +0000 (18 20:41 +0000)
tree90ae9fe84421fc07b14a3bec97c7edf178592824
parent139c51038197965b0e010a1b4496829a6828310f
Incremental PrefixSet builder for Safe Browsing store.

Incremental update of the database file implies incrementally building
the PrefixSet.  Refactor the code to that end, taking advantage of the
change to get rid of the copy converting from SBAddPrefix to SBPrefix.

Change SBAddPrefix ordering to prefix-primary to remove the need to re-sort
things and get some bake time on the reordering.

BUG=351448

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257735 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/safe_browsing/prefix_set.cc
chrome/browser/safe_browsing/prefix_set.h
chrome/browser/safe_browsing/prefix_set_unittest.cc
chrome/browser/safe_browsing/safe_browsing_database.cc
chrome/browser/safe_browsing/safe_browsing_store.h
chrome/browser/safe_browsing/safe_browsing_store_file.cc
chrome/browser/safe_browsing/safe_browsing_store_file.h
chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc
chrome/browser/safe_browsing/safe_browsing_store_unittest.cc