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

Issue 650113: Convert SafeBrowsingStoreFile to do bulk reads and writes. (Closed)

Created:
10 years, 10 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Convert SafeBrowsingStoreFile to do bulk reads and writes. Read/write the data in the style of fread/fwrite, rather than doing I/O element by element. This lays the groundwork for adding checksumming. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39619 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40186

Patch Set 1 #

Total comments: 9

Patch Set 2 : Drop functor, dedicated read/write ops for sets. #

Patch Set 3 : Typo. #

Patch Set 4 : Fix for gcc 4.4 #

Patch Set 5 : Additional comment on the tweak #

Total comments: 2

Patch Set 6 : Default-initialize POD contents. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -290 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_store.h View 1 2 3 4 5 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.h View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.cc View 1 2 4 5 9 chunks +196 lines, -271 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Scott Hess - ex-Googler
OK, now we're getting somewhere. This if the first half of adding checksums to the ...
10 years, 10 months ago (2010-02-20 20:34:13 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/650113/diff/1/3 File chrome/browser/safe_browsing/safe_browsing_store_file.cc (right): http://codereview.chromium.org/650113/diff/1/3#newcode98 chrome/browser/safe_browsing/safe_browsing_store_file.cc:98: class DeletedChunkRemover { name is a bit confusing. Maybe ...
10 years, 10 months ago (2010-02-22 17:50:58 UTC) #2
Erik does not do reviews
LGTM
10 years, 10 months ago (2010-02-22 17:51:17 UTC) #3
Scott Hess - ex-Googler
http://codereview.chromium.org/650113/diff/1/3 File chrome/browser/safe_browsing/safe_browsing_store_file.cc (right): http://codereview.chromium.org/650113/diff/1/3#newcode98 chrome/browser/safe_browsing/safe_browsing_store_file.cc:98: class DeletedChunkRemover { On 2010/02/22 17:50:58, Erik Kay wrote: ...
10 years, 10 months ago (2010-02-22 18:25:55 UTC) #4
Scott Hess - ex-Googler
Sorry to waste a perfectly good LGTM, but ... could you check out these two ...
10 years, 10 months ago (2010-02-22 19:32:22 UTC) #5
Erik does not do reviews
LGTM
10 years, 10 months ago (2010-02-22 19:52:04 UTC) #6
Scott Hess - ex-Googler
+piman because of the ARM change. ARM builder failed with: chrome/browser/safe_browsing/safe_browsing_store_file.cc: In function 'bool<unnamed>::ReadToVectorAndDelete(std::vector<T, std::allocator<_Tp1> ...
10 years, 10 months ago (2010-02-23 21:47:43 UTC) #7
Scott Hess - ex-Googler
On 2010/02/23 21:47:43, shess wrote: > ARM builder failed with: <crap> +1 for websites freely ...
10 years, 10 months ago (2010-02-23 21:51:46 UTC) #8
piman
http://codereview.chromium.org/650113/diff/1011/1012 File chrome/browser/safe_browsing/safe_browsing_store.h (right): http://codereview.chromium.org/650113/diff/1011/1012#newcode46 chrome/browser/safe_browsing/safe_browsing_store.h:46: SBAddPrefix() {} mmh, I wonder if the gcc issue ...
10 years, 10 months ago (2010-02-23 22:02:53 UTC) #9
Scott Hess - ex-Googler
http://codereview.chromium.org/650113/diff/1011/1012 File chrome/browser/safe_browsing/safe_browsing_store.h (right): http://codereview.chromium.org/650113/diff/1011/1012#newcode46 chrome/browser/safe_browsing/safe_browsing_store.h:46: SBAddPrefix() {} On 2010/02/23 22:02:53, piman wrote: > mmh, ...
10 years, 10 months ago (2010-02-23 22:22:38 UTC) #10
piman
On Tue, Feb 23, 2010 at 2:22 PM, <shess@chromium.org> wrote: > > http://codereview.chromium.org/650113/diff/1011/1012 > File ...
10 years, 10 months ago (2010-02-23 22:31:52 UTC) #11
Scott Hess - ex-Googler
On 2010/02/23 22:31:52, piman wrote: > Different inlining may or may not let the compiler ...
10 years, 10 months ago (2010-02-23 22:39:53 UTC) #12
Scott Hess - ex-Googler
On 2010/02/23 22:39:53, shess wrote: > On 2010/02/23 22:31:52, piman wrote: > > Different inlining ...
10 years, 10 months ago (2010-02-23 22:42:27 UTC) #13
Scott Hess - ex-Googler
On 2010/02/23 22:42:27, shess wrote: > On 2010/02/23 22:39:53, shess wrote: > > On 2010/02/23 ...
10 years, 10 months ago (2010-02-25 00:53:30 UTC) #14
piman
On Wed, Feb 24, 2010 at 4:53 PM, <shess@chromium.org> wrote: > On 2010/02/23 22:42:27, shess ...
10 years, 10 months ago (2010-02-25 02:09:21 UTC) #15
Scott Hess - ex-Googler
Sorry for the delay. Sheriffing. On Wed, Feb 24, 2010 at 6:08 PM, Antoine Labour ...
10 years, 10 months ago (2010-02-26 23:39:41 UTC) #16
piman
LGTM, thanks. I think it's better that way.
10 years, 10 months ago (2010-02-26 23:46:46 UTC) #17
Scott Hess - ex-Googler
10 years, 10 months ago (2010-02-27 00:40:07 UTC) #18
On 2010/02/26 23:46:46, piman wrote:
> LGTM, thanks. I think it's better that way.

Thank you for the patience.  I learned a lot.  Probably not stuff I'll ever be
able to productively use, but I'll sure wow them at the next cocktail party I
attend.

Powered by Google App Engine
This is Rietveld 408576698