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

Issue 201070: Implementation of application cache update algorithm.... (Closed)

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

Description

Implementation of application cache update algorithm. Does not include storage nor processing of pending master entries. TEST=verify update functionality BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28123

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 24

Patch Set 3 : '' #

Total comments: 85

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 71

Patch Set 6 : '' #

Total comments: 13

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 3

Patch Set 9 : '' #

Total comments: 24

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 11

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2258 lines, -28 lines) Patch
M webkit/appcache/appcache.h View 2 3 4 5 6 7 8 5 chunks +16 lines, -3 lines 0 comments Download
M webkit/appcache/appcache.cc View 2 3 4 5 6 7 8 3 chunks +14 lines, -7 lines 0 comments Download
M webkit/appcache/appcache_group.h View 1 2 3 4 5 6 7 8 9 4 chunks +43 lines, -7 lines 0 comments Download
M webkit/appcache/appcache_group.cc View 3 4 5 6 7 8 9 10 11 4 chunks +37 lines, -8 lines 0 comments Download
M webkit/appcache/appcache_group_unittest.cc View 6 7 8 9 10 11 2 chunks +24 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_interfaces.h View 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webkit/appcache/appcache_interfaces.cc View 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_service.h View 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_service.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_unittest.cc View 4 5 6 7 8 9 1 chunk +38 lines, -1 line 0 comments Download
A webkit/appcache/appcache_update_job.h View 3 4 5 6 7 8 9 10 11 1 chunk +184 lines, -0 lines 0 comments Download
A webkit/appcache/appcache_update_job.cc View 3 4 5 6 7 8 9 10 11 1 chunk +671 lines, -0 lines 0 comments Download
A webkit/appcache/appcache_update_job_unittest.cc View 4 5 6 7 8 9 10 11 1 chunk +1172 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/empty-manifest View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/empty-manifest.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/explicit1 View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/explicit2 View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/fallback1a View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/gone View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/gone.mock-http-headers View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-fb-404 View 1 chunk +7 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-fb-404.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-merged-types View 1 chunk +9 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-merged-types.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-with-404 View 1 chunk +9 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest-with-404.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest1 View 1 chunk +6 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/manifest1.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/notmodified View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/notmodified.mock-http-headers View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/servererror View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/appcache/data/appcache_unittest/servererror.mock-http-headers View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
jennb
Hi Michael, I'm still working on this, but here's an early snapshot in case you ...
11 years, 3 months ago (2009-09-09 19:34:15 UTC) #1
michaeln
Thnx for the preview. http://codereview.chromium.org/201070/diff/1/4 File webkit/appcache/appcache_updater.cc (right): http://codereview.chromium.org/201070/diff/1/4#newcode95 Line 95: // TODO(jennb): need a ...
11 years, 3 months ago (2009-09-09 21:19:20 UTC) #2
jennb
Another snapshot of my progress. The remaining TODOs will probably stay TODOs in this CL. ...
11 years, 3 months ago (2009-09-11 00:59:23 UTC) #3
michaeln
This is looking really good overall, there's quite a lot of there there to look ...
11 years, 3 months ago (2009-09-11 02:37:49 UTC) #4
michaeln
I still haven't looked thru with an eye for update algorithm correctness, or URLRequest usage ...
11 years, 3 months ago (2009-09-11 21:37:39 UTC) #5
jennb
New snapshot uploaded to address feedback so far. Still need to work on unittests. http://codereview.chromium.org/201070/diff/5001/3004 ...
11 years, 3 months ago (2009-09-12 05:07:05 UTC) #6
michaeln
http://codereview.chromium.org/201070/diff/1003/1009 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/1003/1009#newcode73 Line 73: manifest_url_ = GURL(group_->manifest_url()); i don't think you need ...
11 years, 3 months ago (2009-09-14 04:17:57 UTC) #7
michaeln
some more comments... http://codereview.chromium.org/201070/diff/1003/1009 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/1003/1009#newcode112 Line 112: NotifyAllAssociatedHosts(CHECKING_EVENT); So at this point... ...
11 years, 3 months ago (2009-09-14 18:50:33 UTC) #8
michaeln
Still didn't make it all the way thru... http://codereview.chromium.org/201070/diff/1003/1009 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/1003/1009#newcode71 Line 71: ...
11 years, 3 months ago (2009-09-15 03:37:45 UTC) #9
jennb
New snapshot uploaded. This is as far as I got today. Addressed all feedback comments ...
11 years, 3 months ago (2009-09-16 01:41:29 UTC) #10
michaeln
And this is as far as i got... http://codereview.chromium.org/201070/diff/1003/1010 File webkit/appcache/appcache_update_job.h (right): http://codereview.chromium.org/201070/diff/1003/1010#newcode22 Line 22: ...
11 years, 3 months ago (2009-09-16 06:24:11 UTC) #11
michaeln
Getting there... http://codereview.chromium.org/201070/diff/8002/8010 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/8002/8010#newcode127 Line 127: request->SetUserData(this, new UpdateJobInfo(fetch_type)); Please also set ...
11 years, 3 months ago (2009-09-16 16:23:57 UTC) #12
michaeln
ok... made it all the way thru... last set of comments... http://codereview.chromium.org/201070/diff/8002/8010 File webkit/appcache/appcache_update_job.cc (right): ...
11 years, 3 months ago (2009-09-16 17:10:56 UTC) #13
jennb
New snapshot uploaded. Added a few unittests. http://codereview.chromium.org/201070/diff/8002/8004 File webkit/appcache/appcache.h (right): http://codereview.chromium.org/201070/diff/8002/8004#newcode36 Line 36: explicit ...
11 years, 3 months ago (2009-09-16 21:01:30 UTC) #14
michaeln
> Don't know what 'near side of the fetchqueue' means I mean push_front() vs push_back(), ...
11 years, 3 months ago (2009-09-16 21:15:25 UTC) #15
michaeln
> Also saving for separate CL. Agreed! > 'Restart': if master entries have completed their ...
11 years, 3 months ago (2009-09-16 21:32:45 UTC) #16
michaeln
> Gears retries up to 3 times on 503. However it does not take the ...
11 years, 3 months ago (2009-09-16 21:42:44 UTC) #17
michaeln
here's a couple of comments outside of the core new class and its tests... i'm ...
11 years, 3 months ago (2009-09-16 22:24:08 UTC) #18
michaeln
http://codereview.chromium.org/201070/diff/8002/8010 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/8002/8010#newcode255 Line 255: Manifest manifest; Fair enough. http://codereview.chromium.org/201070/diff/8002/8010#newcode350 Line 350: // ...
11 years, 3 months ago (2009-09-16 22:58:52 UTC) #19
jennb
New snapshot uploaded. http://codereview.chromium.org/201070/diff/15/8017 File webkit/appcache/appcache.h (right): http://codereview.chromium.org/201070/diff/15/8017#newcode71 Line 71: void ExtractManifestData(Manifest* manifest); On 2009/09/16 ...
11 years, 3 months ago (2009-09-16 23:53:40 UTC) #20
michaeln
http://codereview.chromium.org/201070/diff/17001/18009 File webkit/appcache/appcache_update_job.cc (right): http://codereview.chromium.org/201070/diff/17001/18009#newcode139 Line 139: request->Start(); We'll need to hang on to a ...
11 years, 2 months ago (2009-09-29 19:08:08 UTC) #21
jennb
On Tue, Sep 29, 2009 at 12:08 PM, <michaeln@chromium.org> wrote: > > http://codereview.chromium.org/201070/diff/17001/18009 > File ...
11 years, 2 months ago (2009-09-30 01:18:05 UTC) #22
michaeln
> > http://codereview.chromium.org/201070/diff/17001/18009#newcode253 > > Line 253: group_->set_obsolete(true); > > I'm looking at this callsite, ...
11 years, 2 months ago (2009-09-30 01:53:47 UTC) #23
jennb
New patch uploaded. Finally done with unittests. Added some code to simulate async behavior for ...
11 years, 2 months ago (2009-09-30 22:27:05 UTC) #24
michaeln
Hi Jenn, I got distracted yesterday with a couple of things and didn't get you ...
11 years, 2 months ago (2009-10-01 18:37:10 UTC) #25
michaeln
Haven't look thru the unit tests yet, but here's a pass thru the job.cc and ...
11 years, 2 months ago (2009-10-01 21:19:18 UTC) #26
jennb
No new snapshot yet. Just replying. On Thu, Oct 1, 2009 at 11:37 AM, <michaeln@chromium.org> ...
11 years, 2 months ago (2009-10-01 21:35:54 UTC) #27
jennb
Still no new snapshot yet. Just replying again for now. On Thu, Oct 1, 2009 ...
11 years, 2 months ago (2009-10-01 22:38:17 UTC) #28
michaeln
Haven't made it all the way thru the unit tests yet... i like the general ...
11 years, 2 months ago (2009-10-01 23:55:10 UTC) #29
michaeln
>> 1) Always run-till-completion vs not for unattended UpdateJobs. In >> particular at browser shutdown ...
11 years, 2 months ago (2009-10-02 19:58:26 UTC) #30
jennb
New snapshot uploaded. Hopefully, all the try bots will be happy now. On Thu, Oct ...
11 years, 2 months ago (2009-10-03 00:39:58 UTC) #31
michaeln
This is so close. > An update job will error out if (in increasing amount ...
11 years, 2 months ago (2009-10-05 20:54:33 UTC) #32
jennb
No new snapshot yet. Just replying. On Mon, Oct 5, 2009 at 12:16 PM, <michaeln@chromium.org> ...
11 years, 2 months ago (2009-10-05 21:09:48 UTC) #33
michaeln
> Things can go awry as the AppCacheUpdateJobTest dtor runs in the UI thread. > ...
11 years, 2 months ago (2009-10-05 21:13:21 UTC) #34
jennb
New snapshot uploaded. - AppCacheGroup::StartUpdate family now does not do actually start any updates. Commented ...
11 years, 2 months ago (2009-10-05 21:42:52 UTC) #35
michaeln
11 years, 2 months ago (2009-10-05 21:55:04 UTC) #36
LGTM!

Powered by Google App Engine
This is Rietveld 408576698