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

Issue 2627123003: SharedWorker: Simplify connection sequence (Closed)

Created:
3 years, 11 months ago by nhiroki
Modified:
3 years, 11 months ago
Reviewers:
kinuko, haraken, horo
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SharedWorker: Simplify connection sequence This is a cleanup CL and should not change behavior. Before this CL, shared worker connection sequence consists of two pathes: 1) SharedWorkerRepositoryClientImpl::conenct (in blink) - SharedWorkerRepository::createSharedWorkerConnector (in chromium) * sends a worker creation message to the browser * returns an instance of WebSharedWorkerProxy 2) SharedWorkerRepositoryClientImpl::connect (in blink) - SharedWorkerConnector::connect (in blink) - WebSharedWorkerProxy::connect (in chromium) * sends a connection request to the browser After this CL, they are merged into one path like this: 1) SharedWorkerRepositoryClientImpl::connect (in blink) - SharedWorkerRepository::connect (in chromium) * creates an instance of WebSharedWorkerProxy - WebSharedWorkerProxy::connect (in chromium) * sends a worker creation message to the browser * sends a connection request to the browser BUG=612308 Review-Url: https://codereview.chromium.org/2627123003 Cr-Commit-Position: refs/heads/master@{#444557} Committed: https://chromium.googlesource.com/chromium/src/+/b28a77ff0b6d09ba31cafb8029eda163accae3c8

Patch Set 1 #

Total comments: 8

Patch Set 2 : address review comments #

Patch Set 3 : rebase #

Patch Set 4 : maybe fix win compile failures #

Total comments: 2

Patch Set 5 : call connect() in the ctor #

Patch Set 6 : remove unnecessary forward declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -213 lines) Patch
M content/renderer/shared_worker/shared_worker_repository.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/shared_worker/shared_worker_repository.cc View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/shared_worker/websharedworker_proxy.h View 1 2 3 4 5 3 chunks +21 lines, -16 lines 0 comments Download
M content/renderer/shared_worker/websharedworker_proxy.cc View 1 2 3 4 3 chunks +27 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorker.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp View 1 4 chunks +48 lines, -68 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/public/web/WebSharedWorkerConnectListener.h View 1 1 chunk +15 lines, -22 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorkerConnector.h View 1 chunk +0 lines, -62 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h View 3 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 56 (41 generated)
nhiroki
PTAL, thanks! https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc File content/renderer/shared_worker/websharedworker_proxy.cc (left): https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc#oldcode30 content/renderer/shared_worker/websharedworker_proxy.cc:30: void WebSharedWorkerProxy::connect(blink::WebMessagePortChannel* channel, Question: Who owns this ...
3 years, 11 months ago (2017-01-13 05:28:54 UTC) #26
kinuko
Thanks for making this patch, https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc File content/renderer/shared_worker/websharedworker_proxy.cc (left): https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc#oldcode30 content/renderer/shared_worker/websharedworker_proxy.cc:30: void WebSharedWorkerProxy::connect(blink::WebMessagePortChannel* channel, On ...
3 years, 11 months ago (2017-01-13 07:31:35 UTC) #29
horo
https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc File content/renderer/shared_worker/websharedworker_proxy.cc (left): https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc#oldcode30 content/renderer/shared_worker/websharedworker_proxy.cc:30: void WebSharedWorkerProxy::connect(blink::WebMessagePortChannel* channel, On 2017/01/13 07:31:34, kinuko wrote: > ...
3 years, 11 months ago (2017-01-16 07:11:03 UTC) #30
Yuta Kitamura
On 2017/01/16 07:11:03, horo wrote: > Humm... > It looks leaking after this change. > ...
3 years, 11 months ago (2017-01-16 09:16:12 UTC) #31
horo
On 2017/01/16 09:16:12, Yuta Kitamura wrote: > On 2017/01/16 07:11:03, horo wrote: > > Humm... ...
3 years, 11 months ago (2017-01-16 10:37:30 UTC) #32
nhiroki
Thank you for your comments! Updated. https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc File content/renderer/shared_worker/websharedworker_proxy.cc (left): https://codereview.chromium.org/2627123003/diff/120001/content/renderer/shared_worker/websharedworker_proxy.cc#oldcode30 content/renderer/shared_worker/websharedworker_proxy.cc:30: void WebSharedWorkerProxy::connect(blink::WebMessagePortChannel* channel, ...
3 years, 11 months ago (2017-01-18 05:42:37 UTC) #35
kinuko
https://codereview.chromium.org/2627123003/diff/180001/content/renderer/shared_worker/websharedworker_proxy.h File content/renderer/shared_worker/websharedworker_proxy.h (right): https://codereview.chromium.org/2627123003/diff/180001/content/renderer/shared_worker/websharedworker_proxy.h#newcode37 content/renderer/shared_worker/websharedworker_proxy.h:37: // This is expected to be called immediately after ...
3 years, 11 months ago (2017-01-18 09:13:31 UTC) #40
nhiroki
Thank you. Updated. https://codereview.chromium.org/2627123003/diff/180001/content/renderer/shared_worker/websharedworker_proxy.h File content/renderer/shared_worker/websharedworker_proxy.h (right): https://codereview.chromium.org/2627123003/diff/180001/content/renderer/shared_worker/websharedworker_proxy.h#newcode37 content/renderer/shared_worker/websharedworker_proxy.h:37: // This is expected to be ...
3 years, 11 months ago (2017-01-18 09:38:03 UTC) #43
horo
This cl lgtm. But as we talked offline, you should write a document about the ...
3 years, 11 months ago (2017-01-18 11:53:04 UTC) #46
nhiroki
On 2017/01/18 11:53:04, horo wrote: > This cl lgtm. Thank you for reviewing this. > ...
3 years, 11 months ago (2017-01-18 12:34:01 UTC) #47
kinuko
lgtm/2
3 years, 11 months ago (2017-01-18 13:26:47 UTC) #48
nhiroki
+haraken, can you review Source/web/SharedWorkerRepositoryClientImpl.cpp? Thanks.
3 years, 11 months ago (2017-01-18 15:04:14 UTC) #50
haraken
On 2017/01/18 15:04:14, nhiroki wrote: > +haraken, can you review Source/web/SharedWorkerRepositoryClientImpl.cpp? > Thanks. LGTM
3 years, 11 months ago (2017-01-18 23:58:19 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627123003/220001
3 years, 11 months ago (2017-01-19 00:06:08 UTC) #53
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 00:12:55 UTC) #56
Message was sent while issue was closed.
Committed patchset #6 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/b28a77ff0b6d09ba31cafb8029ed...

Powered by Google App Engine
This is Rietveld 408576698