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 85023003: EmbeddedWorker, browser side code (Closed)

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

Description

EmbeddedWorker, browser side code Adding two new classes, EmbeddedWorkerRegistry and EmbeddedWorkerInstance. Technically they can be implemented within ServiceWorkerContextCore and ServiceWorkerVersion, but here I wrote them in separate classes for logical separation. * EmbeddedWorkerRegistry -- Hangs off the ServiceWorkerContextCore -- Acts as a stub between MessageFilter and each EmbeddedWorkerInstance -- Sends/receives messages to/from each EmbeddedWorker in child process -- Mostly talks only with MessageFilter and EmbeddedWorkerInstance * EmbeddedWorkerInstance -- ServiceWorkerVersion will own it (1:1 relation) -- Provides an interface to interact (Start/Stop/Execute) with an EmbeddedWorker BUG=313530 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240030

Patch Set 1 : #

Patch Set 2 : build fix #

Total comments: 14

Patch Set 3 : rebased + addressed comments #

Patch Set 4 : build fix on win #

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -14 lines) Patch
A content/browser/service_worker/embedded_worker_instance.h View 1 2 3 4 1 chunk +102 lines, -0 lines 0 comments Download
A content/browser/service_worker/embedded_worker_instance.cc View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
A content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 2 3 4 1 chunk +137 lines, -0 lines 0 comments Download
A content/browser/service_worker/embedded_worker_registry.h View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
A content/browser/service_worker/embedded_worker_registry.cc View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_registration_unittest.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 2 chunks +27 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 1 chunk +36 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kinuko
Here're some of the browser side code. I'm adding two classes, their overview is in ...
7 years ago (2013-11-27 05:25:10 UTC) #1
alecflett
small, addressable nits. lgtm with those. https://codereview.chromium.org/85023003/diff/160001/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/85023003/diff/160001/content/browser/service_worker/embedded_worker_instance.cc#newcode44 content/browser/service_worker/embedded_worker_instance.cc:44: registry_->StopWorker(process_id_, embedded_worker_id_); set ...
7 years ago (2013-12-05 05:18:42 UTC) #2
kinuko
Thx, updated. https://codereview.chromium.org/85023003/diff/160001/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/85023003/diff/160001/content/browser/service_worker/embedded_worker_instance.cc#newcode44 content/browser/service_worker/embedded_worker_instance.cc:44: registry_->StopWorker(process_id_, embedded_worker_id_); On 2013/12/05 05:18:42, alecflett wrote: ...
7 years ago (2013-12-09 14:07:42 UTC) #3
kinuko
Added decent unittests and fixed some bugs. Also moved some EmbeddedWorkerInstance methods to private and ...
7 years ago (2013-12-10 11:53:26 UTC) #4
kinuko
Ok, I'm landing this. Feel free to shout out even after it lands, I can ...
7 years ago (2013-12-11 03:15:20 UTC) #5
kinuko
TBR=jochen for content/content_{browser,tests}.gypi changes (adding a few files + test).
7 years ago (2013-12-11 03:16:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/85023003/250001
7 years ago (2013-12-11 03:17:15 UTC) #7
commit-bot: I haz the power
7 years ago (2013-12-11 06:05:36 UTC) #8
Message was sent while issue was closed.
Change committed as 240030

Powered by Google App Engine
This is Rietveld 408576698