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

Issue 11316178: Added CacheEntry implementation. (Closed)

Created:
8 years ago by agayev
Modified:
8 years ago
CC:
chromium-reviews, sadrul, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added CacheEntry implementation. BUG=157187 TEST=net_unittests --gtest_filter="FlashCacheTest.*" --gtest_repeat=10 --shuffle Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171444

Patch Set 1 #

Patch Set 2 : Fixed error message. #

Patch Set 3 : Removed redundant function declarations. #

Patch Set 4 : Moved insync initialization to constructor. #

Total comments: 33

Patch Set 5 : Fixed nits. #

Patch Set 6 : #

Patch Set 7 : got rid of unnecessary declarations. #

Patch Set 8 : Misc. #

Total comments: 14

Patch Set 9 : Fixed nits. #

Patch Set 10 : Added a TODO. #

Patch Set 11 : Added destructor for Stream struct. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -2 lines) Patch
A net/disk_cache/flash/cache_entry.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
A net/disk_cache/flash/cache_entry.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +160 lines, -0 lines 0 comments Download
A net/disk_cache/flash/cache_entry_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -0 lines 0 comments Download
M net/disk_cache/flash/format.h View 1 chunk +5 lines, -0 lines 0 comments Download
M net/disk_cache/flash/storage.cc View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
agayev
PTAL. I will add comments once the API stabilizes.
8 years ago (2012-11-26 20:57:14 UTC) #1
rvargas (doing something else)
https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode51 net/disk_cache/flash/cache_entry.cc:51: !store_->ReadData(id_, stream_sizes, kFlashCacheEntryHeaderSize, 0)) needs braces https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode88 net/disk_cache/flash/cache_entry.cc:88: DCHECK(init_&& ...
8 years ago (2012-11-28 03:12:56 UTC) #2
agayev
https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode51 net/disk_cache/flash/cache_entry.cc:51: !store_->ReadData(id_, stream_sizes, kFlashCacheEntryHeaderSize, 0)) On 2012/11/28 03:12:56, rvargas wrote: ...
8 years ago (2012-11-29 16:14:43 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode95 net/disk_cache/flash/cache_entry.cc:95: const int stream_size = static_cast<int>(streams_[index].data.size()); On 2012/11/29 16:14:43, agayev ...
8 years ago (2012-11-29 20:32:36 UTC) #4
agayev
Instead of replying to the comments I reply here in one coherent piece. What I've ...
8 years ago (2012-12-03 17:33:07 UTC) #5
rvargas (doing something else)
My point is that (2) is not really implemented (or I am missing that). There ...
8 years ago (2012-12-03 21:13:31 UTC) #6
agayev
On 2012/12/03 21:13:31, rvargas wrote: > My point is that (2) is not really implemented ...
8 years ago (2012-12-03 22:53:58 UTC) #7
rvargas (doing something else)
On 2012/12/03 22:53:58, agayev wrote: > On 2012/12/03 21:13:31, rvargas wrote: > > My point ...
8 years ago (2012-12-03 23:26:16 UTC) #8
agayev
PTAL. I've made the changes we talked about. On 2012/12/03 23:26:16, rvargas wrote: > On ...
8 years ago (2012-12-04 20:29:45 UTC) #9
rvargas (doing something else)
mostly nits https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode112 net/disk_cache/flash/cache_entry.cc:112: DCHECK(offset >= 0 && buf_len >= 0); ...
8 years ago (2012-12-05 00:21:01 UTC) #10
agayev
https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/4006/net/disk_cache/flash/cache_entry.cc#newcode112 net/disk_cache/flash/cache_entry.cc:112: DCHECK(offset >= 0 && buf_len >= 0); On 2012/12/05 ...
8 years ago (2012-12-05 16:53:19 UTC) #11
rvargas (doing something else)
lgtm https://codereview.chromium.org/11316178/diff/8017/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/8017/net/disk_cache/flash/cache_entry.cc#newcode105 net/disk_cache/flash/cache_entry.cc:105: DCHECK(offset == stream.size); On 2012/12/05 16:53:19, agayev wrote: ...
8 years ago (2012-12-05 18:39:37 UTC) #12
agayev
https://codereview.chromium.org/11316178/diff/8017/net/disk_cache/flash/cache_entry.cc File net/disk_cache/flash/cache_entry.cc (right): https://codereview.chromium.org/11316178/diff/8017/net/disk_cache/flash/cache_entry.cc#newcode105 net/disk_cache/flash/cache_entry.cc:105: DCHECK(offset == stream.size); On 2012/12/05 18:39:37, rvargas wrote: > ...
8 years ago (2012-12-05 20:11:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agayev@chromium.org/11316178/21002
8 years ago (2012-12-06 03:06:36 UTC) #14
commit-bot: I haz the power
8 years ago (2012-12-06 07:55:21 UTC) #15
Message was sent while issue was closed.
Change committed as 171444

Powered by Google App Engine
This is Rietveld 408576698