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

Issue 62203007: Implement memory-persistent registration (Closed)

Created:
7 years, 1 month ago by alecflett
Modified:
6 years, 5 months ago
Reviewers:
kinuko, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Implement memory-persistent registration This simply provides an in-memory registration in ServiceWorkerContext. It provides basic registration/unregistration, adding stub ServiceWorkerRegistry and ServiceWorkerVersion classes. BUG=285976 TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239380

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : Address kinuko's comments, add more tests #

Patch Set 4 : Remove some stray #includes #

Total comments: 1

Patch Set 5 : Address review comments before splitting #

Patch Set 6 : Rip out registration/version #

Patch Set 7 : Now with storage and jobs! #

Patch Set 8 : Working version #

Total comments: 24

Patch Set 9 : Also pass status around #

Patch Set 10 : Clean up enums, comments, etc #

Patch Set 11 : More comments #

Total comments: 42

Patch Set 12 : Address kinuko's comments #

Total comments: 29

Patch Set 13 : Address most comments #

Total comments: 6

Patch Set 14 : spacing and whatnot #

Patch Set 15 : Fix const_iterator bustage #

Patch Set 16 : Fix variable that we don't need anymore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1147 lines, -27 lines) Patch
M content/browser/service_worker/service_worker_context.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +38 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +56 lines, -15 lines 0 comments Download
A content/browser/service_worker/service_worker_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +168 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A content/browser/service_worker/service_worker_register_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +79 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +118 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_registration_status.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_storage.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +102 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +190 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_storage_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +354 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
alecflett
michaeln@ / kinuko@ - PTAL? I've explicitly made the register/unregister asynchronous, requiring the event loop ...
7 years, 1 month ago (2013-11-08 02:18:29 UTC) #1
kinuko
High-level comment: how much are we going to make this version tentative/prototype-ish or not? The ...
7 years, 1 month ago (2013-11-08 09:08:20 UTC) #2
alecflett
On 2013/11/08 09:08:20, kinuko wrote: > High-level comment: how much are we going to make ...
7 years, 1 month ago (2013-11-08 19:45:57 UTC) #3
alecflett
https://codereview.chromium.org/62203007/diff/20001/content/browser/service_worker/service_worker_context.cc File content/browser/service_worker/service_worker_context.cc (right): https://codereview.chromium.org/62203007/diff/20001/content/browser/service_worker/service_worker_context.cc#newcode20 content/browser/service_worker/service_worker_context.cc:20: static int64 NextRegistrationId() { On 2013/11/08 09:08:21, kinuko wrote: ...
7 years, 1 month ago (2013-11-08 22:50:54 UTC) #4
alecflett
On 2013/11/08 22:50:54, alecflett wrote: > https://codereview.chromium.org/62203007/diff/20001/content/browser/service_worker/service_worker_context.cc > File content/browser/service_worker/service_worker_context.cc (right): > > https://codereview.chromium.org/62203007/diff/20001/content/browser/service_worker/service_worker_context.cc#newcode20 > ...
7 years, 1 month ago (2013-11-08 23:12:56 UTC) #5
michaeln
> High-level comment: how much are we going to make this version > tentative/prototype-ish or ...
7 years, 1 month ago (2013-11-11 23:48:24 UTC) #6
alecflett
Updated patch and new CL upcoming. All the rest of the review comments will be ...
7 years, 1 month ago (2013-11-12 01:21:11 UTC) #7
alecflett
Ok, this patch has now been updated to reflect moving the registration/version stuff into a ...
7 years, 1 month ago (2013-11-12 20:06:26 UTC) #8
alecflett
Ok, this is *almost* ready for a full review but michaeln/kinuko feel free to take ...
7 years, 1 month ago (2013-11-22 00:33:47 UTC) #9
alecflett
ok, a little late, but this is now ready to go. michaeln/kinuko PTAL?
7 years, 1 month ago (2013-11-23 00:14:34 UTC) #10
kinuko
Haven't read the tests yet, but sending some comments. https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_context_core.cc#newcode27 content/browser/service_worker/service_worker_context_core.cc:27: ...
7 years ago (2013-11-25 08:17:09 UTC) #11
alecflett
I don't have a patch up in response to these, but here's what I'm working ...
7 years ago (2013-11-26 00:19:14 UTC) #12
kinuko
https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_register_job.cc#newcode33 content/browser/service_worker/service_worker_register_job.cc:33: weak_factory_.GetWeakPtr())))); On 2013/11/26 00:19:14, alecflett wrote: > On 2013/11/25 ...
7 years ago (2013-11-26 08:02:00 UTC) #13
alecflett
On 2013/11/26 08:02:00, kinuko wrote: > https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_register_job.cc > File content/browser/service_worker/service_worker_register_job.cc (right): > > https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_register_job.cc#newcode33 > ...
7 years ago (2013-11-26 20:23:47 UTC) #14
alecflett
Ok new patch is up. I'm not totally happy with the enums as they stand ...
7 years ago (2013-11-26 21:09:35 UTC) #15
alecflett
ok, I'm happy (enough) with this now. There's obviously a lot more that needs to ...
7 years ago (2013-11-26 23:19:59 UTC) #16
kinuko
On 2013/11/26 20:23:47, alecflett wrote: > On 2013/11/26 08:02:00, kinuko wrote: > > > https://codereview.chromium.org/62203007/diff/320001/content/browser/service_worker/service_worker_register_job.cc ...
7 years ago (2013-11-27 01:41:37 UTC) #17
kinuko
https://codereview.chromium.org/62203007/diff/470001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/62203007/diff/470001/content/browser/service_worker/service_worker_context_core.cc#newcode92 content/browser/service_worker/service_worker_context_core.cc:92: void ServiceWorkerContextCore::RegisterServiceWorker( nit: method order. https://codereview.chromium.org/62203007/diff/470001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): ...
7 years ago (2013-11-27 03:45:23 UTC) #18
alecflett
[new patch will be up later today, that includes all the 'Done' parts here] https://codereview.chromium.org/62203007/diff/470001/content/browser/service_worker/service_worker_context_core.cc ...
7 years ago (2013-12-02 16:11:35 UTC) #19
alecflett
Ok, outstanding issues have been addressed. I need to convert ServiceWorkerContextTest to use TestBrowserThreadBundle, but ...
7 years ago (2013-12-03 22:34:08 UTC) #20
kinuko
Sorry if I'm blocking you, I think I have a few more comments. Many of ...
7 years ago (2013-12-04 13:04:29 UTC) #21
alecflett
Ok, I've addressed *most* comments. There are a few things that I'd like to leave ...
7 years ago (2013-12-06 05:43:32 UTC) #22
alecflett
> I feel like I added this because otherwise the threads don't realize they're in ...
7 years ago (2013-12-06 05:44:44 UTC) #23
kinuko
I'm giving lgtm to unblock things, though I still have some concern about Storage's method ...
7 years ago (2013-12-06 15:24:48 UTC) #24
alecflett
On 2013/12/06 15:24:48, kinuko wrote: > I'm giving lgtm to unblock things, though I still ...
7 years ago (2013-12-06 17:26:29 UTC) #25
alecflett
jam@ - TBR'ing you for new files added to content_*.gyp's https://codereview.chromium.org/62203007/diff/510001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/62203007/diff/510001/content/browser/service_worker/service_worker_context_unittest.cc#newcode19 ...
7 years ago (2013-12-06 18:58:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/62203007/530001
7 years ago (2013-12-06 19:09:08 UTC) #27
jam
On 2013/12/06 18:58:44, alecflett wrote: > jam@ - TBR'ing you for new files added to ...
7 years ago (2013-12-06 20:34:09 UTC) #28
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) app_list_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
7 years ago (2013-12-06 22:36:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/62203007/550001
7 years ago (2013-12-07 01:02:15 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, ...
7 years ago (2013-12-07 03:32:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/62203007/570001
7 years ago (2013-12-07 04:54:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/62203007/570001
7 years ago (2013-12-08 06:52:47 UTC) #34
commit-bot: I haz the power
7 years ago (2013-12-08 06:58:10 UTC) #35
Message was sent while issue was closed.
Change committed as 239380

Powered by Google App Engine
This is Rietveld 408576698