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

Issue 133093003: Move the worker script loading code to the worker process (phase:4/5) (Closed)

Created:
6 years, 11 months ago by horo
Modified:
6 years, 10 months ago
Reviewers:
kinuko, michaeln, jam, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@02ScriptLoadInWorkerChrome
Visibility:
Public.

Description

Move the worker script loading code to the worker process (phase:4/5) - Stop sending the worker script from the renderer. - In this change we can remove the pending instances in WorkerServiceImpl. This is step 4 of moving the worker script loading code from the renderer process to the worker process. See: http://crbug.com/329786 BUG=329786 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248869

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : Add message_port_id to FilterInfo and stop sending unnecessary ViewMsg_WorkerConnected. #

Patch Set 5 : remove message_port_id_ from WebSharedWorkerProxy. #

Patch Set 6 : rebase #

Total comments: 16

Patch Set 7 : #

Total comments: 12

Patch Set 8 : #

Total comments: 6

Patch Set 9 : Incorporated jam's comments. #

Patch Set 10 : Add "network-shared-worker.html [ Failure ]" to test_expectations.txt #

Total comments: 4

Patch Set 11 : change comments in worker_webapplicationcachehost_impl.h and rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -521 lines) Patch
M content/browser/worker_host/worker_message_filter.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/worker_host/worker_message_filter.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -17 lines 0 comments Download
M content/browser/worker_host/worker_process_host.h View 1 2 3 4 5 6 7 chunks +25 lines, -17 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +84 lines, -50 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.h View 3 chunks +2 lines, -30 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.cc View 1 2 3 4 5 6 8 chunks +34 lines, -184 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -24 lines 0 comments Download
M content/common/worker_messages.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -9 lines 2 comments Download
M content/renderer/shared_worker_repository.cc View 1 3 chunks +3 lines, -8 lines 0 comments Download
M content/renderer/websharedworker_proxy.h View 1 2 3 4 3 chunks +4 lines, -25 lines 0 comments Download
M content/renderer/websharedworker_proxy.cc View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -76 lines 0 comments Download
M content/worker/websharedworker_stub.h View 1 2 3 4 5 6 4 chunks +3 lines, -17 lines 0 comments Download
M content/worker/websharedworker_stub.cc View 1 2 3 4 5 6 5 chunks +23 lines, -28 lines 0 comments Download
M content/worker/websharedworkerclient_proxy.cc View 2 chunks +3 lines, -3 lines 0 comments Download
content/worker/worker_thread.cc View 1 2 3 4 5 6 1 chunk +1 line, -6 lines 0 comments Download
M content/worker/worker_webapplicationcachehost_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -20 lines 0 comments Download
M content/worker/worker_webapplicationcachehost_impl.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/tools/layout_tests/test_expectations.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
horo
jam@ nasko@ kinuko@ Could you please review this CL? Thank you!
6 years, 10 months ago (2014-01-29 10:51:21 UTC) #1
kinuko
https://codereview.chromium.org/133093003/diff/550001/content/browser/worker_host/worker_process_host.h File content/browser/worker_host/worker_process_host.h (right): https://codereview.chromium.org/133093003/diff/550001/content/browser/worker_host/worker_process_host.h#newcode78 content/browser/worker_host/worker_process_host.h:78: void set_message_port_id(int id) { message_port_id_ = id; } nit: ...
6 years, 10 months ago (2014-01-30 05:21:06 UTC) #2
kinuko
Some more thoughts/comments. https://codereview.chromium.org/133093003/diff/550001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/133093003/diff/550001/content/common/view_messages.h#newcode1222 content/common/view_messages.h:1222: // Response message to ViewHostMsg_CreateShared/DedicatedWorker. ViewHostMsg_CreateWorker ...
6 years, 10 months ago (2014-01-30 05:35:26 UTC) #3
horo
https://codereview.chromium.org/133093003/diff/550001/content/browser/worker_host/worker_process_host.h File content/browser/worker_host/worker_process_host.h (right): https://codereview.chromium.org/133093003/diff/550001/content/browser/worker_host/worker_process_host.h#newcode78 content/browser/worker_host/worker_process_host.h:78: void set_message_port_id(int id) { message_port_id_ = id; } On ...
6 years, 10 months ago (2014-01-30 11:09:13 UTC) #4
kinuko
lgtm /w some more nits Adding michaeln@ in case he wants to say something on ...
6 years, 10 months ago (2014-01-30 13:25:48 UTC) #5
horo
https://codereview.chromium.org/133093003/diff/640001/content/browser/worker_host/worker_message_filter.cc File content/browser/worker_host/worker_message_filter.cc (right): https://codereview.chromium.org/133093003/diff/640001/content/browser/worker_host/worker_message_filter.cc#newcode64 content/browser/worker_host/worker_message_filter.cc:64: *route_id = MSG_ROUTING_NONE; On 2014/01/30 13:25:48, kinuko wrote: > ...
6 years, 10 months ago (2014-01-30 14:12:54 UTC) #6
jam
lgtm https://codereview.chromium.org/133093003/diff/660001/content/browser/worker_host/worker_process_host.cc File content/browser/worker_host/worker_process_host.cc (right): https://codereview.chromium.org/133093003/diff/660001/content/browser/worker_host/worker_process_host.cc#newcode431 content/browser/worker_host/worker_process_host.cc:431: CHECK(j->filter()); nit: this is a bit redundant since ...
6 years, 10 months ago (2014-01-30 19:46:11 UTC) #7
jam
Also, it seems like we need more owners in content/worker and content/browser/worker_host and for the ...
6 years, 10 months ago (2014-01-30 19:47:53 UTC) #8
horo
https://codereview.chromium.org/133093003/diff/660001/content/browser/worker_host/worker_process_host.cc File content/browser/worker_host/worker_process_host.cc (right): https://codereview.chromium.org/133093003/diff/660001/content/browser/worker_host/worker_process_host.cc#newcode431 content/browser/worker_host/worker_process_host.cc:431: CHECK(j->filter()); On 2014/01/30 19:46:11, jam wrote: > nit: this ...
6 years, 10 months ago (2014-01-31 03:19:14 UTC) #9
michaeln
https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.h File content/worker/worker_webapplicationcachehost_impl.h (right): https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.h#newcode18 content/worker/worker_webapplicationcachehost_impl.h:18: // loaded by the creator of the worker rather ...
6 years, 10 months ago (2014-01-31 23:37:44 UTC) #10
michaeln
https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.cc File content/worker/worker_webapplicationcachehost_impl.cc (left): https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.cc#oldcode17 content/worker/worker_webapplicationcachehost_impl.cc:17: backend()->SelectCacheForSharedWorker(host_id(), This method probably should get called prior to ...
6 years, 10 months ago (2014-01-31 23:41:46 UTC) #11
nasko
No need to wait for me on this CL. I'm interested to see the usage ...
6 years, 10 months ago (2014-01-31 23:57:34 UTC) #12
horo
https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.cc File content/worker/worker_webapplicationcachehost_impl.cc (left): https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.cc#oldcode17 content/worker/worker_webapplicationcachehost_impl.cc:17: backend()->SelectCacheForSharedWorker(host_id(), On 2014/01/31 23:41:47, michaeln wrote: > This method ...
6 years, 10 months ago (2014-02-03 02:32:27 UTC) #13
horo
On 2014/01/31 23:57:34, nasko wrote: > No need to wait for me on this CL. ...
6 years, 10 months ago (2014-02-03 02:33:20 UTC) #14
nasko
You technically don't need mine, since jam@ already has done it. I have just one ...
6 years, 10 months ago (2014-02-03 15:06:54 UTC) #15
nasko
You technically don't need mine, since jam@ already has done it. I have just one ...
6 years, 10 months ago (2014-02-03 15:06:59 UTC) #16
jam
https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h File content/common/worker_messages.h (right): https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h#newcode106 content/common/worker_messages.h:106: IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, On 2014/02/03 15:06:55, nasko wrote: > nit: It ...
6 years, 10 months ago (2014-02-03 16:15:23 UTC) #17
nasko
On 2014/02/03 16:15:23, jam wrote: > https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h > File content/common/worker_messages.h (right): > > https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h#newcode106 > ...
6 years, 10 months ago (2014-02-03 16:37:12 UTC) #18
michaeln
great, thnx, lgtm > https://codereview.chromium.org/133093003/diff/700001/content/worker/worker_webapplicationcachehost_impl.h#newcode18 > content/worker/worker_webapplicationcachehost_impl.h:18: // loaded by the > creator of the ...
6 years, 10 months ago (2014-02-03 20:31:04 UTC) #19
horo
On 2014/02/03 16:37:12, nasko wrote: > On 2014/02/03 16:15:23, jam wrote: > > > https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h ...
6 years, 10 months ago (2014-02-04 01:36:35 UTC) #20
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-04 09:14:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/133093003/750001
6 years, 10 months ago (2014-02-04 09:16:42 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 10:24:55 UTC) #23
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=120653
6 years, 10 months ago (2014-02-04 10:24:56 UTC) #24
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-04 10:59:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/133093003/750001
6 years, 10 months ago (2014-02-04 10:59:58 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 12:21:28 UTC) #27
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=120705
6 years, 10 months ago (2014-02-04 12:21:29 UTC) #28
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-04 14:06:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/133093003/750001
6 years, 10 months ago (2014-02-04 14:06:37 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 15:10:06 UTC) #31
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=120807
6 years, 10 months ago (2014-02-04 15:10:06 UTC) #32
skia-commit-bot
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 15:10:15 UTC) #33
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-04 20:52:46 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/133093003/750001
6 years, 10 months ago (2014-02-04 20:55:44 UTC) #35
jam
On 2014/02/03 16:37:12, nasko wrote: > On 2014/02/03 16:15:23, jam wrote: > > > https://codereview.chromium.org/133093003/diff/750001/content/common/worker_messages.h ...
6 years, 10 months ago (2014-02-05 00:03:40 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/133093003/750001
6 years, 10 months ago (2014-02-05 00:55:24 UTC) #37
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 10 months ago (2014-02-05 03:17:55 UTC) #38
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-05 03:17:56 UTC) #39
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 06:05:01 UTC) #40
Message was sent while issue was closed.
Change committed as 248869

Powered by Google App Engine
This is Rietveld 408576698