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

Issue 269062: AppCacheResponse storage implementation (Closed)

Created:
11 years, 2 months ago by michaeln
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

AppCacheResponse storage implementation * classes AppCacheResponseReader and AppCacheResponseWriter * also implements AppCacheStorage.LoadResponseInfo() * using a memory-backed disk_cache for now, so not really on disk yet TEST=appcache_response_unittest.cc BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29670

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 17

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 8

Patch Set 15 : '' #

Total comments: 17

Patch Set 16 : '' #

Total comments: 2

Patch Set 17 : '' #

Patch Set 18 : '' #

Total comments: 4

Patch Set 19 : '' #

Patch Set 20 : '' #

Total comments: 5

Patch Set 21 : '' #

Patch Set 22 : '' #

Total comments: 45

Patch Set 23 : '' #

Patch Set 24 : '' #

Total comments: 2

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Patch Set 29 : '' #

Total comments: 1

Patch Set 30 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1378 lines, -115 lines) Patch
A webkit/appcache/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_backend_impl.h View 25 26 27 28 1 chunk +0 lines, -1 line 0 comments Download
M webkit/appcache/appcache_response.h View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 5 chunks +95 lines, -79 lines 0 comments Download
A webkit/appcache/appcache_response.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +262 lines, -0 lines 0 comments Download
A webkit/appcache/appcache_response_unittest.cc View 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +716 lines, -0 lines 1 comment Download
M webkit/appcache/appcache_service.h View 25 26 27 28 1 chunk +0 lines, -1 line 0 comments Download
M webkit/appcache/appcache_storage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 9 chunks +155 lines, -15 lines 0 comments Download
A webkit/appcache/appcache_storage.cc View 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +38 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_working_set.cc View 25 26 27 28 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +38 lines, -3 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 4 chunks +66 lines, -16 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M webkit/webkit.gyp View 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
jennb
http://codereview.chromium.org/269062/diff/20/5011 File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/269062/diff/20/5011#newcode60 Line 60: io_context_.release()->detach(); when does the io_context_ get destroyed? http://codereview.chromium.org/269062/diff/20/5011#newcode66 ...
11 years, 2 months ago (2009-10-15 18:53:57 UTC) #1
michaeln
http://codereview.chromium.org/269062/diff/20/5011 File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/269062/diff/20/5011#newcode60 Line 60: io_context_.release()->detach(); On 2009/10/15 18:53:58, jennb wrote: > when ...
11 years, 2 months ago (2009-10-15 20:08:21 UTC) #2
jennb
On Thu, Oct 15, 2009 at 1:08 PM, <michaeln@chromium.org> wrote: > Reviewers: jennb, rvargas, > ...
11 years, 2 months ago (2009-10-15 20:21:21 UTC) #3
michaeln
Uploaded a new snapshot with changes outlined in a previous repsponse. > "delegate be easily" ...
11 years, 2 months ago (2009-10-15 20:33:23 UTC) #4
rvargas (doing something else)
First three files so far. http://codereview.chromium.org/269062/diff/12001/11007 File webkit/appcache/appcache_response.h (right): http://codereview.chromium.org/269062/diff/12001/11007#newcode9 Line 9: #include "base/logging.h" Could ...
11 years, 2 months ago (2009-10-15 23:30:08 UTC) #5
michaeln
New snapshot http://codereview.chromium.org/269062/diff/12001/11007 File webkit/appcache/appcache_response.h (right): http://codereview.chromium.org/269062/diff/12001/11007#newcode69 Line 69: // even after the entry has ...
11 years, 2 months ago (2009-10-16 01:26:17 UTC) #6
rvargas (doing something else)
I feel I would have to read way more code to do a real review ...
11 years, 2 months ago (2009-10-16 21:33:09 UTC) #7
michaeln
> I feel I would have to read way more code to do a real ...
11 years, 2 months ago (2009-10-16 23:33:57 UTC) #8
rvargas (doing something else)
> > Can we move this to a cc file? > > Not sure i ...
11 years, 2 months ago (2009-10-17 00:31:36 UTC) #9
michaeln
> Yeah, I thought that when looking at the mocked version. I just don't like ...
11 years, 2 months ago (2009-10-17 06:51:18 UTC) #10
michaeln
New snapshot * considerably more work on the unittests * only very small changes outside ...
11 years, 2 months ago (2009-10-19 20:02:11 UTC) #11
michaeln
http://codereview.chromium.org/269062/diff/19001/20009 File webkit/appcache/appcache_response_unittest.cc (right): http://codereview.chromium.org/269062/diff/19001/20009#newcode24 Line 24: // Test Harness ------------------------------------------------------------- I could refactor this ...
11 years, 2 months ago (2009-10-19 20:28:42 UTC) #12
michaeln
New snapshot with read tests... void WriteThenVariouslyReadResponse() { // This tests involves multiple async steps. ...
11 years, 2 months ago (2009-10-20 03:35:55 UTC) #13
michaeln
http://codereview.chromium.org/269062/diff/23004/24014 File webkit/appcache/appcache_response_unittest.cc (right): http://codereview.chromium.org/269062/diff/23004/24014#newcode5 Line 5: #include "base/pickle.h" alpha ordering is fixed locally, there ...
11 years, 2 months ago (2009-10-20 04:53:03 UTC) #14
michaeln
http://codereview.chromium.org/269062/diff/23004/24014 File webkit/appcache/appcache_response_unittest.cc (right): http://codereview.chromium.org/269062/diff/23004/24014#newcode199 Line 199: const int64 kResponseId = 111; maybe should be ...
11 years, 2 months ago (2009-10-20 07:00:44 UTC) #15
rvargas (doing something else)
http://codereview.chromium.org/269062/diff/23004/24014 File webkit/appcache/appcache_response_unittest.cc (right): http://codereview.chromium.org/269062/diff/23004/24014#newcode257 Line 257: // 5. Reader just a range. nit: typo ...
11 years, 2 months ago (2009-10-20 18:32:22 UTC) #16
michaeln
> A test for deleting a reader or writer while io is pending would be ...
11 years, 2 months ago (2009-10-20 20:39:46 UTC) #17
jennb
http://codereview.chromium.org/269062/diff/23004/24011 File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/269062/diff/23004/24011#newcode8 Line 8: #include "base/logging.h" alpha http://codereview.chromium.org/269062/diff/23004/24011#newcode24 Line 24: kResponseInfoIndex, enum ...
11 years, 2 months ago (2009-10-20 21:27:31 UTC) #18
michaeln
I have some lint cleanup and minor .h file touching up to do and trailing ...
11 years, 2 months ago (2009-10-20 21:46:42 UTC) #19
michaeln
New snapshot... but have a few other items to take care of. * DCHECKs out ...
11 years, 2 months ago (2009-10-20 22:50:24 UTC) #20
rvargas (doing something else)
> And ricardo, i'll try taking the addr of the virtual method, but i don't ...
11 years, 2 months ago (2009-10-20 22:58:32 UTC) #21
rvargas (doing something else)
http://codereview.chromium.org/269062/diff/25003/25012 File webkit/appcache/appcache_response_unittest.cc (right): http://codereview.chromium.org/269062/diff/25003/25012#newcode110 Line 110: delete task_stack_.top().first; nit: having the implementation of every ...
11 years, 2 months ago (2009-10-20 22:58:59 UTC) #22
jennb
On Tue, Oct 20, 2009 at 3:50 PM, <michaeln@chromium.org> wrote: > > > http://codereview.chromium.org/269062/diff/23004/24014#newcode157 > ...
11 years, 2 months ago (2009-10-20 23:07:30 UTC) #23
michaeln
New snapshot... * additional ReadRange tests * compare info structures more deeply > >> Count ...
11 years, 2 months ago (2009-10-20 23:20:00 UTC) #24
jennb
LGTM if trybots and rvargas agree. Remember to update the description.
11 years, 2 months ago (2009-10-20 23:33:35 UTC) #25
michaeln
New snapshot. * Made reader and writer return async'ly via the callback for all IO ...
11 years, 2 months ago (2009-10-21 01:57:15 UTC) #26
rvargas (doing something else)
LGTM after fixing the leak.
11 years, 2 months ago (2009-10-21 02:16:01 UTC) #27
michaeln
On 2009/10/21 02:16:01, rvargas wrote: > LGTM after fixing the leak. Thnx... leak fixed, sync'd ...
11 years, 2 months ago (2009-10-21 02:49:01 UTC) #28
rvargas (doing something else)
OK, Thanks.
11 years, 2 months ago (2009-10-21 02:53:38 UTC) #29
michaeln
new snapshot... http://codereview.chromium.org/269062/diff/26005/26011 File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/269062/diff/26005/26011#newcode209 Line 209: buffer_ = new net::WrappedIOBuffer( whoa... can't ...
11 years, 2 months ago (2009-10-21 17:25:35 UTC) #30
rvargas (doing something else)
11 years, 2 months ago (2009-10-21 17:40:59 UTC) #31
LGTM

http://codereview.chromium.org/269062/diff/31001/23069
File webkit/appcache/appcache_response_unittest.cc (right):

http://codereview.chromium.org/269062/diff/31001/23069#newcode635
Line 635: // wait a moment to verify no callbacks
nit: Capitalize wait and end with period.

Powered by Google App Engine
This is Rietveld 408576698