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

Issue 8658001: Disk cache: Add a hash to the entry's internal data. (Closed)

Created:
9 years, 1 month ago by rvargas (doing something else)
Modified:
9 years ago
Reviewers:
gavinp
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Disk cache: Add a hash to the entry's internal data. EntryStore and RankingsNode now have a new member that verifies that whatever we read from disk is what we wrote before. BUG=100125 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112336

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -190 lines) Patch
D net/data/cache_tests/dirty_entry/contents.txt View 1 chunk +0 lines, -67 lines 0 comments Download
D net/data/cache_tests/dirty_entry/data_0 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry/data_1 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry/data_2 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry/data_3 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry/index View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry2/contents.txt View 1 chunk +0 lines, -67 lines 0 comments Download
D net/data/cache_tests/dirty_entry2/data_0 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry2/data_1 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry2/data_2 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry2/data_3 View Binary file 0 comments Download
D net/data/cache_tests/dirty_entry2/index View Binary file 0 comments Download
M net/disk_cache/backend_impl.cc View 4 chunks +6 lines, -7 lines 3 comments Download
M net/disk_cache/backend_unittest.cc View 3 chunks +1 line, -32 lines 0 comments Download
M net/disk_cache/disk_format.h View 2 chunks +3 lines, -2 lines 2 comments Download
M net/disk_cache/entry_impl.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M net/disk_cache/rankings.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M net/disk_cache/storage_block.h View 2 chunks +4 lines, -0 lines 0 comments Download
M net/disk_cache/storage_block-inl.h View 4 chunks +11 lines, -0 lines 0 comments Download
M net/tools/dump_cache/dump_files.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
rvargas (doing something else)
9 years, 1 month ago (2011-11-22 21:57:17 UTC) #1
gavinp
Just a few questions. http://codereview.chromium.org/8658001/diff/1/net/disk_cache/backend_impl.cc File net/disk_cache/backend_impl.cc (right): http://codereview.chromium.org/8658001/diff/1/net/disk_cache/backend_impl.cc#newcode823 net/disk_cache/backend_impl.cc:823: cache_entry->rankings()->Store(); Nice. http://codereview.chromium.org/8658001/diff/1/net/disk_cache/backend_impl.cc#newcode1666 net/disk_cache/backend_impl.cc:1666: cache_entry->SetDirtyFlag(GetCurrentEntryId()); ...
9 years ago (2011-11-29 15:47:42 UTC) #2
rvargas (doing something else)
Thanks http://codereview.chromium.org/8658001/diff/1/net/disk_cache/backend_impl.cc File net/disk_cache/backend_impl.cc (right): http://codereview.chromium.org/8658001/diff/1/net/disk_cache/backend_impl.cc#newcode1666 net/disk_cache/backend_impl.cc:1666: cache_entry->SetDirtyFlag(GetCurrentEntryId()); On 2011/11/29 15:47:42, gavinp wrote: > Why ...
9 years ago (2011-11-29 19:08:56 UTC) #3
gavinp
9 years ago (2011-11-30 13:53:34 UTC) #4
LGTM!

Powered by Google App Engine
This is Rietveld 408576698