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

Issue 113133013: Refactor job coordination into a separate class. (Closed)

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

Description

Refactor job coordination into a separate class. This makes ServiceWorkerStorage return to being a mostly stateless class, at least with respect to jobs, and in fact it is now ignorant of registraiton jobs. This CL is purely mechanical, moving tests and functions around without altering any behavior. BUG= TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243759

Patch Set 1 #

Total comments: 11

Patch Set 2 : Formatting and callback naming tweaks #

Patch Set 3 : Remove WeakPtr usage from Storage #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -503 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 4 chunks +9 lines, -6 lines 0 comments Download
A content/browser/service_worker/service_worker_job_coordinator.h View 1 2 1 chunk +69 lines, -0 lines 1 comment Download
A content/browser/service_worker/service_worker_job_coordinator.cc View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
A + content/browser/service_worker/service_worker_job_unittest.cc View 1 2 13 chunks +34 lines, -47 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 1 2 4 chunks +17 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 6 chunks +11 lines, -11 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 3 chunks +7 lines, -42 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 4 chunks +1 line, -55 lines 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 3 chunks +1 line, -338 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
alecflett
michaeln@, kinuko@ - PTAL?
7 years ago (2013-12-17 00:02:08 UTC) #1
kinuko
Since we're stepping out from original class structure design, it might be better to have ...
7 years ago (2013-12-18 05:43:34 UTC) #2
alecflett
https://codereview.chromium.org/113133013/diff/1/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/113133013/diff/1/content/browser/service_worker/service_worker_context_core.cc#newcode25 content/browser/service_worker/service_worker_context_core.cc:25: job_coordinator_(new ServiceWorkerJobCoordinator(storage_->AsWeakPtr())), On 2013/12/18 05:43:35, kinuko wrote: > I ...
6 years, 11 months ago (2014-01-06 21:47:12 UTC) #3
alecflett
Ok, followon patch which deals with duplicate/overlapping registration jobs is here: http://crrev.com/126603002
6 years, 11 months ago (2014-01-07 23:44:22 UTC) #4
kinuko
Some more comments about WeakPtr usage. I'm going to take a look at another patch ...
6 years, 11 months ago (2014-01-08 06:19:10 UTC) #5
kinuko
On 2014/01/08 06:19:10, kinuko wrote: > Some more comments about WeakPtr usage. I'm going to ...
6 years, 11 months ago (2014-01-08 08:12:39 UTC) #6
alecflett
Here's the updated patch, PTAL https://codereview.chromium.org/113133013/diff/1/content/browser/service_worker/service_worker_storage.h File content/browser/service_worker/service_worker_storage.h (right): https://codereview.chromium.org/113133013/diff/1/content/browser/service_worker/service_worker_storage.h#newcode55 content/browser/service_worker/service_worker_storage.h:55: } On 2014/01/08 06:19:10, ...
6 years, 11 months ago (2014-01-08 23:17:11 UTC) #7
alecflett
(TBR'ed jam for the .gypi changes - kinuko feel free to check the CQ bit ...
6 years, 11 months ago (2014-01-08 23:18:34 UTC) #8
kinuko
lgtm https://codereview.chromium.org/113133013/diff/160001/content/browser/service_worker/service_worker_job_coordinator.h File content/browser/service_worker/service_worker_job_coordinator.h (right): https://codereview.chromium.org/113133013/diff/160001/content/browser/service_worker/service_worker_job_coordinator.h#newcode57 content/browser/service_worker/service_worker_job_coordinator.h:57: // The ServiceWorkerStorage object should always outlive this ...
6 years, 11 months ago (2014-01-09 01:41:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/113133013/160001
6 years, 11 months ago (2014-01-09 01:50:50 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 04:16:42 UTC) #11
Message was sent while issue was closed.
Change committed as 243759

Powered by Google App Engine
This is Rietveld 408576698