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

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

Created:
7 years ago by horo
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move the worker script loading code to the worker process (phase:2/5) - Add content_security_policy and security_policy_type to ViewHostMsg_CreateWorker_Params and WorkerProcessMsg_CreateWorker_Params. It is needed because WorkerMsg_StartWorkerContext will be removed. - Implement workerScriptLoaded, workerScriptLoadFailed and selectAppChacheID. - Queue WebMessagePortChannel in WebSharedWorkerStub::OnConnect When we will add the script loading code in WebSharedWorkerImpl, the worker process can't respond to the connection request which is sent soon after the SharedWorker is created. So we have to create WebMessagePortChannelImpl in WebSharedWorkerStub::OnConnect. This is step 2 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=243864

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : Stop using forward reference to enum type. #

Total comments: 3

Patch Set 7 : Move IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) to content_param_traits_macros.h. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -30 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/worker_host/worker_process_host.h View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/content_param_traits_macros.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/worker_messages.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/shared_worker_repository.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/shared_worker_repository.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/websharedworker_proxy.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/worker/websharedworker_stub.h View 1 3 chunks +13 lines, -4 lines 0 comments Download
M content/worker/websharedworker_stub.cc View 1 3 chunks +26 lines, -16 lines 0 comments Download
M content/worker/websharedworkerclient_proxy.h View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M content/worker/websharedworkerclient_proxy.cc View 1 2 3 4 5 6 3 chunks +26 lines, -4 lines 0 comments Download
M content/worker/worker_thread.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
horo
kinuko@ Could you please review this? This cl depends on https://codereview.chromium.org/102243010/
7 years ago (2013-12-19 06:55:52 UTC) #1
kinuko
looking good https://codereview.chromium.org/115713004/diff/1/content/worker/websharedworker_stub.h File content/worker/websharedworker_stub.h (right): https://codereview.chromium.org/115713004/diff/1/content/worker/websharedworker_stub.h#newcode33 content/worker/websharedworker_stub.h:33: blink::WebContentSecurityPolicyType security_policy_type_, nit: trailing '_' not needed ...
7 years ago (2013-12-20 05:29:38 UTC) #2
horo
https://codereview.chromium.org/115713004/diff/1/content/worker/websharedworker_stub.h File content/worker/websharedworker_stub.h (right): https://codereview.chromium.org/115713004/diff/1/content/worker/websharedworker_stub.h#newcode33 content/worker/websharedworker_stub.h:33: blink::WebContentSecurityPolicyType security_policy_type_, On 2013/12/20 05:29:39, kinuko wrote: > nit: ...
7 years ago (2013-12-20 07:31:42 UTC) #3
kinuko
Looks like the upload's broken? (rietveld appengine issue..)
7 years ago (2013-12-20 07:43:49 UTC) #4
horo
On 2013/12/20 07:43:49, kinuko wrote: > Looks like the upload's broken? (rietveld appengine issue..) Uploaded ...
7 years ago (2013-12-20 08:06:20 UTC) #5
kinuko
lgtm https://codereview.chromium.org/115713004/diff/20002/content/worker/websharedworkerclient_proxy.cc File content/worker/websharedworkerclient_proxy.cc (right): https://codereview.chromium.org/115713004/diff/20002/content/worker/websharedworkerclient_proxy.cc#newcode76 content/worker/websharedworkerclient_proxy.cc:76: // DocumentLoader. So we have to call selectAppCacheID ...
7 years ago (2013-12-20 08:23:20 UTC) #6
horo
https://codereview.chromium.org/115713004/diff/20002/content/worker/websharedworkerclient_proxy.cc File content/worker/websharedworkerclient_proxy.cc (right): https://codereview.chromium.org/115713004/diff/20002/content/worker/websharedworkerclient_proxy.cc#newcode76 content/worker/websharedworkerclient_proxy.cc:76: // DocumentLoader. So we have to call selectAppCacheID while ...
7 years ago (2013-12-20 08:48:15 UTC) #7
horo
jam@ Could you please review this CL?
6 years, 11 months ago (2014-01-08 13:23:29 UTC) #8
horo
nasko@ Could you please review view_messages.h and worker_messages.h?
6 years, 11 months ago (2014-01-08 13:24:30 UTC) #9
nasko
https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h File content/common/worker_messages.h (left): https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h#oldcode48 content/common/worker_messages.h:48: IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) Why are you removing this? The more the ...
6 years, 11 months ago (2014-01-08 15:05:01 UTC) #10
horo
https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h File content/common/worker_messages.h (left): https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h#oldcode48 content/common/worker_messages.h:48: IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) On 2014/01/08 15:05:01, nasko wrote: > Why are ...
6 years, 11 months ago (2014-01-08 16:01:18 UTC) #11
horo
https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h File content/common/worker_messages.h (left): https://codereview.chromium.org/115713004/diff/280001/content/common/worker_messages.h#oldcode48 content/common/worker_messages.h:48: IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) On 2014/01/08 16:01:19, horo wrote: > On 2014/01/08 ...
6 years, 11 months ago (2014-01-08 16:41:16 UTC) #12
nasko
IPC messages LGTM Please add me to the subsequent CL that actually uses those parameters.
6 years, 11 months ago (2014-01-08 16:58:40 UTC) #13
jam
lgtm, as long as there are no security concerns about trusting the WebContentSecurityPolicyType value from ...
6 years, 11 months ago (2014-01-08 19:38:45 UTC) #14
nasko
On 2014/01/08 19:38:45, jam wrote: > lgtm, as long as there are no security concerns ...
6 years, 11 months ago (2014-01-08 20:34:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/115713004/500001
6 years, 11 months ago (2014-01-08 22:30:56 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=43926
6 years, 11 months ago (2014-01-08 23:03:34 UTC) #17
horo
jochen@ Could you please review this DEPS change? Chromium presubmit says > Missing LGTM from ...
6 years, 11 months ago (2014-01-08 23:22:55 UTC) #18
jam
On 2014/01/08 23:22:55, horo wrote: > jochen@ > Could you please review this DEPS change? ...
6 years, 11 months ago (2014-01-09 02:12:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/115713004/500001
6 years, 11 months ago (2014-01-09 02:18:07 UTC) #20
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=43984
6 years, 11 months ago (2014-01-09 02:48:17 UTC) #21
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-09 08:00:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/115713004/500001
6 years, 11 months ago (2014-01-09 08:05:05 UTC) #23
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 12:23:47 UTC) #24
Message was sent while issue was closed.
Change committed as 243864

Powered by Google App Engine
This is Rietveld 408576698