looks good to me too with kinuko's comments typo in CL description: s/desing/design https://codereview.chromium.org/855383006/diff/190001/content/browser/service_worker/service_worker_provider_host.h File ...
5 years, 10 months ago
(2015-01-28 13:42:09 UTC)
#12
looks good to me too with kinuko's comments
typo in CL description: s/desing/design
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
File content/browser/service_worker/service_worker_provider_host.h (right):
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
content/browser/service_worker/service_worker_provider_host.h:48: typedef
ServiceWorkerProviderHost self;
comment: This pattern doesn't look idiomatic in Chromium codebase (outside some
Service Worker and sync file system classes :) ... is it really worth the level
of indirection... and is it even ok per style guide to have this lowercase type?
I'm not strongly opposed, just seems a bit off.
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
content/browser/service_worker/service_worker_provider_host.h:181: void
SetReadyToSend(int render_thread_id);
On 2015/01/28 07:13:11, kinuko wrote:
> SetReadyToSendMessagesToRenderer ? (or ToWorker, maybe, as it's only used for
> SWs)
+1, it'd be nice to have a more descriptive name and summarize the gist of the
design doc in a comment here so the motivation is understood: events for the
worker are queued up until the worker thread id is known.
nhiroki
Thank you! Updated. https://codereview.chromium.org/855383006/diff/190001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/855383006/diff/190001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode672 content/browser/service_worker/service_worker_dispatcher_host.cc:672: return; // The provider has already ...
5 years, 10 months ago
(2015-01-28 13:43:22 UTC)
#13
+mkwst@, can you review embedded_worker_messages.h ? Thanks.
5 years, 10 months ago
(2015-01-28 13:43:59 UTC)
#15
+mkwst@, can you review embedded_worker_messages.h ? Thanks.
Mike West
IPC LGTM.
5 years, 10 months ago
(2015-01-28 14:04:17 UTC)
#16
IPC LGTM.
nhiroki
Thank you for reviewing. Addressed falken@'s comments. https://codereview.chromium.org/855383006/diff/190001/content/browser/service_worker/service_worker_provider_host.h File content/browser/service_worker/service_worker_provider_host.h (right): https://codereview.chromium.org/855383006/diff/190001/content/browser/service_worker/service_worker_provider_host.h#newcode48 content/browser/service_worker/service_worker_provider_host.h:48: typedef ServiceWorkerProviderHost ...
5 years, 10 months ago
(2015-01-28 14:08:30 UTC)
#17
Thank you for reviewing. Addressed falken@'s comments.
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
File content/browser/service_worker/service_worker_provider_host.h (right):
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
content/browser/service_worker/service_worker_provider_host.h:48: typedef
ServiceWorkerProviderHost self;
On 2015/01/28 13:42:09, falken wrote:
> comment: This pattern doesn't look idiomatic in Chromium codebase (outside
some
> Service Worker and sync file system classes :) ... is it really worth the
level
> of indirection... and is it even ok per style guide to have this lowercase
type?
> I'm not strongly opposed, just seems a bit off.
To wrap the line at 80 columns, I just copied it from other sites without
thinking. This seems no longer necessary, so I just removed.
https://codereview.chromium.org/855383006/diff/190001/content/browser/service...
content/browser/service_worker/service_worker_provider_host.h:181: void
SetReadyToSend(int render_thread_id);
On 2015/01/28 13:42:09, falken wrote:
> On 2015/01/28 07:13:11, kinuko wrote:
> > SetReadyToSendMessagesToRenderer ? (or ToWorker, maybe, as it's only used
for
> > SWs)
>
> +1, it'd be nice to have a more descriptive name and summarize the gist of the
> design doc in a comment here so the motivation is understood: events for the
> worker are queued up until the worker thread id is known.
Updated.
nhiroki
The CQ bit was checked by nhiroki@chromium.org
5 years, 10 months ago
(2015-01-28 14:09:32 UTC)
#18
Issue 855383006: ServiceWorker: Enqueue state change events until the worker thread gets ready
(Closed)
Created 5 years, 11 months ago by nhiroki
Modified 5 years, 10 months ago
Reviewers: kinuko, falken, Mike West
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 14