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

Issue 14263005: Refactor our SimpleIndex file format and serialization to use Pickle instead of the previously bugg… (Closed)

Created:
7 years, 8 months ago by felipeg
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Refactor our SimpleIndex file format and serialization to use Pickle instead of the previously buggy way of writing uninitialized structs and ints into the file. BUG=230772 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194347 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194387 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194403

Patch Set 1 #

Patch Set 2 : I forgot to add two files. #

Patch Set 3 : similarity #

Total comments: 60

Patch Set 4 : syncing #

Total comments: 16

Patch Set 5 : syncing again, but no major diffs in the sync #

Total comments: 2

Patch Set 6 : Philippe's comments #

Total comments: 33

Patch Set 7 : egors comments #

Total comments: 6

Patch Set 8 : gavins comments #

Patch Set 9 : add unittetsts #

Patch Set 10 : std::memset gavin comment #

Total comments: 2

Patch Set 11 : Sync #

Total comments: 9

Patch Set 12 : sync and merging #

Patch Set 13 : gavins comments #

Patch Set 14 : Fix a compilation error in the unittest due to wrong merge. #

Patch Set 15 : sync #

Total comments: 2

Patch Set 16 : #

Patch Set 17 : #

Total comments: 24

Patch Set 18 : gavins comments #

Patch Set 19 : 32bit bot bug in unittests constants #

Patch Set 20 : #

Patch Set 21 : to commit again, since the last dcommit failed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -480 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
D net/disk_cache/simple/simple_disk_format.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -128 lines 0 comments Download
D net/disk_cache/simple/simple_disk_format.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -120 lines 0 comments Download
A net/disk_cache/simple/simple_entry_format.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +38 lines, -0 lines 0 comments Download
A + net/disk_cache/simple/simple_entry_format.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +58 lines, -28 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +107 lines, -192 lines 0 comments Download
A net/disk_cache/simple/simple_index_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +92 lines, -0 lines 0 comments Download
A net/disk_cache/simple/simple_index_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +164 lines, -0 lines 0 comments Download
A net/disk_cache/simple/simple_index_file_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +92 lines, -0 lines 0 comments Download
A net/disk_cache/simple/simple_index_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +95 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/simple/simple_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +17 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -3 lines 0 comments Download
A net/disk_cache/simple/simple_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +66 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
felipeg
7 years, 8 months ago (2013-04-15 12:51:10 UTC) #1
felipeg
7 years, 8 months ago (2013-04-15 12:52:24 UTC) #2
Philippe
Thanks Felipe! Sorry for the nits :) https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc#newcode6 net/disk_cache/simple/simple_index.cc:6: <utility> should ...
7 years, 8 months ago (2013-04-15 13:57:56 UTC) #3
pasko-google - do not use
Two major requests: 1. a dedicated serialization/deserialization test 2. make layering more obvious: classes used ...
7 years, 8 months ago (2013-04-15 14:23:55 UTC) #4
felipeg
https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc#newcode6 net/disk_cache/simple/simple_index.cc:6: On 2013/04/15 13:57:57, Philippe wrote: > <utility> should be ...
7 years, 8 months ago (2013-04-15 14:39:07 UTC) #5
maekkamaikunnaluk
0894211429
7 years, 8 months ago (2013-04-15 15:11:02 UTC) #6
maekkamaikunnaluk
7 years, 8 months ago (2013-04-15 15:21:38 UTC) #7
maekkamaikunnaluk
7 years, 8 months ago (2013-04-15 15:21:48 UTC) #8
maekkamaikunnaluk
On 2013/04/15 15:11:02, maekkamaikunnaluk wrote: > 0894211429
7 years, 8 months ago (2013-04-15 15:25:12 UTC) #9
felipeg
https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_index.cc#newcode66 net/disk_cache/simple/simple_index.cc:66: // TODO(felipeg): Use a hash_set instead of a hash_map. ...
7 years, 8 months ago (2013-04-15 15:37:04 UTC) #10
gavinp
Mostly nits. I'd like to see unit tests. https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_disk_format.h File net/disk_cache/simple/simple_disk_format.h (right): https://codereview.chromium.org/14263005/diff/4001/net/disk_cache/simple/simple_disk_format.h#newcode18 net/disk_cache/simple/simple_disk_format.h:18: const ...
7 years, 8 months ago (2013-04-15 15:40:54 UTC) #11
felipeg
https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc File net/disk_cache/simple/simple_disk_format.cc (right): https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc#newcode6 net/disk_cache/simple/simple_disk_format.cc:6: On 2013/04/15 15:40:54, gavinp wrote: > We need #include ...
7 years, 8 months ago (2013-04-15 15:56:09 UTC) #12
gavinp
This is mostly good. I'll look again once there's an upload with a unit test. ...
7 years, 8 months ago (2013-04-15 15:59:19 UTC) #13
gavinp
https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc File net/disk_cache/simple/simple_disk_format.cc (right): https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc#newcode13 net/disk_cache/simple/simple_disk_format.cc:13: memset(this, 0, sizeof(*this)); On 2013/04/15 15:56:09, felipeg1 wrote: > ...
7 years, 8 months ago (2013-04-15 16:00:55 UTC) #14
felipeg
Added unittests. https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc File net/disk_cache/simple/simple_disk_format.cc (right): https://codereview.chromium.org/14263005/diff/10002/net/disk_cache/simple/simple_disk_format.cc#newcode13 net/disk_cache/simple/simple_disk_format.cc:13: memset(this, 0, sizeof(*this)); On 2013/04/15 16:00:55, gavinp ...
7 years, 8 months ago (2013-04-15 18:01:59 UTC) #15
gavinp
Looking good. Have fun with your merge! https://codereview.chromium.org/14263005/diff/1026/net/disk_cache/simple/simple_index.h File net/disk_cache/simple/simple_index.h (right): https://codereview.chromium.org/14263005/diff/1026/net/disk_cache/simple/simple_index.h#newcode32 net/disk_cache/simple/simple_index.h:32: On 2013/04/15 ...
7 years, 8 months ago (2013-04-15 19:27:46 UTC) #16
felipeg
https://codereview.chromium.org/14263005/diff/1026/net/disk_cache/simple/simple_index.h File net/disk_cache/simple/simple_index.h (right): https://codereview.chromium.org/14263005/diff/1026/net/disk_cache/simple/simple_index.h#newcode32 net/disk_cache/simple/simple_index.h:32: On 2013/04/15 19:27:46, gavinp wrote: > On 2013/04/15 15:59:19, ...
7 years, 8 months ago (2013-04-15 20:05:03 UTC) #17
rvargas (doing something else)
rbstmp lgtm. I'm a little surprised that the answer to "I write bugs when dealing ...
7 years, 8 months ago (2013-04-16 03:24:19 UTC) #18
gavinp
Just nits. LGTM! Well done. https://codereview.chromium.org/14263005/diff/32003/net/disk_cache/simple/simple_index.h File net/disk_cache/simple/simple_index.h (right): https://codereview.chromium.org/14263005/diff/32003/net/disk_cache/simple/simple_index.h#newcode42 net/disk_cache/simple/simple_index.h:42: void Serialize(Pickle* pickle) const; ...
7 years, 8 months ago (2013-04-16 11:22:12 UTC) #19
felipeg
https://codereview.chromium.org/14263005/diff/32003/net/disk_cache/simple/simple_index.h File net/disk_cache/simple/simple_index.h (right): https://codereview.chromium.org/14263005/diff/32003/net/disk_cache/simple/simple_index.h#newcode42 net/disk_cache/simple/simple_index.h:42: void Serialize(Pickle* pickle) const; On 2013/04/16 11:22:13, gavinp wrote: ...
7 years, 8 months ago (2013-04-16 11:25:34 UTC) #20
felipeg
Committed patchset #18 manually as r194347 (presubmit successful).
7 years, 8 months ago (2013-04-16 11:58:05 UTC) #21
Philippe
Thanks Felipe for the unit tests and sorry for the new nits. We are almost ...
7 years, 8 months ago (2013-04-16 11:58:47 UTC) #22
felipeg
Committed patchset #20 manually as r194387 (presubmit successful).
7 years, 8 months ago (2013-04-16 17:44:57 UTC) #23
cpu_(ooo_6.6-7.5)
On 2013/04/16 17:44:57, felipeg1 wrote: > Committed patchset #20 manually as r194387 (presubmit successful). the ...
7 years, 8 months ago (2013-04-16 17:57:44 UTC) #24
felipeg
On 2013/04/16 17:57:44, cpu wrote: > On 2013/04/16 17:44:57, felipeg1 wrote: > > Committed patchset ...
7 years, 8 months ago (2013-04-16 18:09:15 UTC) #25
felipeg
On 2013/04/16 18:09:15, felipeg1 wrote: > On 2013/04/16 17:57:44, cpu wrote: > > On 2013/04/16 ...
7 years, 8 months ago (2013-04-16 18:22:28 UTC) #26
felipeg
Committed patchset #21 manually as r194403 (presubmit successful).
7 years, 8 months ago (2013-04-16 18:44:58 UTC) #27
cpu_(ooo_6.6-7.5)
7 years, 8 months ago (2013-04-16 19:14:31 UTC) #28
Message was sent while issue was closed.
On 2013/04/16 18:44:58, felipeg1 wrote:
> Committed patchset #21 manually as r194403 (presubmit successful).

Note that Philippe's made comments that you ignored broke the build
that is why I reverted
http://src.chromium.org/viewvc/chrome?revision=194373&view=revision

Powered by Google App Engine
This is Rietveld 408576698