|
|
DescriptionSharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy
This is just a cleanup and should not change behavior.
WebSharedWorkerProxy has a message queueing mechanism to delay sending messages
until a shared worker is created. This mechanism can handle any message types
and any number of messages, but this would be an overkill. This is because (1)
a connection request is the only message type that uses this mechanism, and (2)
the connection request is issued only one time.
In addition, the current implementation checks |created_| flag on Send() but
this is always false when it's initially called from connect() because a worker
creation request is sent immediately before connect() call.
This CL makes WebSharedWorkerProxy hold only one pending request and removes the
unnecessary |created_| check for cleanup.
BUG=612308
Review-Url: https://codereview.chromium.org/2612043004
Cr-Commit-Position: refs/heads/master@{#442527}
Committed: https://chromium.googlesource.com/chromium/src/+/e1333fa774f8efbe7833ee19618a120c1135bc99
Patch Set 1 #
Total comments: 2
Patch Set 2 : add DCHECK #
Messages
Total messages: 28 (20 generated)
The CQ bit was checked by nhiroki@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 ========== to ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is the only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 ==========
Description was changed from ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is the only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 ========== to ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is the only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 ==========
nhiroki@chromium.org changed reviewers: + horo@chromium.org, kinuko@chromium.org
PTAL. This cleanup is helpful for my mojofication CL: https://codereview.chromium.org/2600113003/
Patchset #1 (id:1) has been deleted
lgtm with a nit https://codereview.chromium.org/2612043004/diff/20001/content/renderer/websha... File content/renderer/websharedworker_proxy.cc (right): https://codereview.chromium.org/2612043004/diff/20001/content/renderer/websha... content/renderer/websharedworker_proxy.cc:31: ConnectListener* listener) { DCHECK_EQ(MSG_ROUTING_NONE, message_port_id_);
Thank you. https://codereview.chromium.org/2612043004/diff/20001/content/renderer/websha... File content/renderer/websharedworker_proxy.cc (right): https://codereview.chromium.org/2612043004/diff/20001/content/renderer/websha... content/renderer/websharedworker_proxy.cc:31: ConnectListener* listener) { On 2017/01/06 06:59:45, horo wrote: > DCHECK_EQ(MSG_ROUTING_NONE, message_port_id_); Done.
The CQ bit was checked by nhiroki@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by nhiroki@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from horo@chromium.org Link to the patchset: https://codereview.chromium.org/2612043004/#ps40001 (title: "add DCHECK")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by nhiroki@chromium.org
The CQ bit was unchecked by nhiroki@chromium.org
lgtm
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1484025950877500, "parent_rev": "4129cc4b6d03ba0b81c43bc5a682f13c6e14817c", "commit_rev": "e1333fa774f8efbe7833ee19618a120c1135bc99"}
Message was sent while issue was closed.
Description was changed from ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is the only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 ========== to ========== SharedWorker: Simplify message queueing mechanism in WebSharedWorkerProxy This is just a cleanup and should not change behavior. WebSharedWorkerProxy has a message queueing mechanism to delay sending messages until a shared worker is created. This mechanism can handle any message types and any number of messages, but this would be an overkill. This is because (1) a connection request is the only message type that uses this mechanism, and (2) the connection request is issued only one time. In addition, the current implementation checks |created_| flag on Send() but this is always false when it's initially called from connect() because a worker creation request is sent immediately before connect() call. This CL makes WebSharedWorkerProxy hold only one pending request and removes the unnecessary |created_| check for cleanup. BUG=612308 Review-Url: https://codereview.chromium.org/2612043004 Cr-Commit-Position: refs/heads/master@{#442527} Committed: https://chromium.googlesource.com/chromium/src/+/e1333fa774f8efbe7833ee19618a... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/e1333fa774f8efbe7833ee19618a... |