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

Issue 173193: Updating Worker.postMessage(), DOMWindow.postMessage(), and... (Closed)

Created:
11 years, 4 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, jam
Visibility:
Public.

Description

First half of updating Worker.postMessage(), DOMWindow.postMessage(), and MessagePort.postMessage() to accept multiple MessagePorts. TEST=None (new functionality not yet exposed via bindings, so existing tests suffice) BUG=19948

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 17

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -210 lines) Patch
M chrome/browser/worker_host/message_port_dispatcher.h View 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/worker_host/message_port_dispatcher.cc View 2 3 2 chunks +28 lines, -22 lines 0 comments Download
M chrome/browser/worker_host/worker_process_host.cc View 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/common/webmessageportchannel_impl.h View 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/common/webmessageportchannel_impl.cc View 2 3 4 5 chunks +50 lines, -27 lines 0 comments Download
M chrome/common/worker_messages.h View 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/worker_messages_internal.h View 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/renderer/webworker_proxy.h View 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/webworker_proxy.cc View 2 3 3 chunks +20 lines, -15 lines 0 comments Download
M chrome/worker/nativewebworker_impl.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/worker/nativewebworker_impl.cc View 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/worker/webworkerclient_proxy.h View 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/worker/webworkerclient_proxy.cc View 2 3 3 chunks +19 lines, -15 lines 0 comments Download
M webkit/api/public/WebMessagePortChannel.h View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M webkit/api/public/WebVector.h View 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/api/public/WebWorker.h View 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/api/public/WebWorkerClient.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/api/src/PlatformMessagePortChannel.cpp View 1 2 3 4 2 chunks +21 lines, -15 lines 0 comments Download
M webkit/glue/webworker_impl.h View 1 5 chunks +4 lines, -6 lines 0 comments Download
M webkit/glue/webworker_impl.cc View 2 3 4 chunks +25 lines, -23 lines 0 comments Download
M webkit/glue/webworkerclient_impl.h View 1 5 chunks +4 lines, -5 lines 0 comments Download
M webkit/glue/webworkerclient_impl.cc View 2 3 6 chunks +33 lines, -29 lines 0 comments Download
M webkit/tools/test_shell/test_worker/test_webworker.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_worker/test_webworker.cc View 3 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
darin (slow to review)
http://codereview.chromium.org/173193/diff/1/4 File webkit/api/src/PlatformMessagePortChannel.cpp (right): http://codereview.chromium.org/173193/diff/1/4#newcode183 Line 183: std::vector<WebMessagePortChannel*> webChannels; here, i would just use WebVector ...
11 years, 4 months ago (2009-08-21 15:12:32 UTC) #1
Andrew T Wilson (Slow)
The existing tests provide good coverage of the "sending a single port" case. I'll add ...
11 years, 4 months ago (2009-08-23 17:24:09 UTC) #2
darin (slow to review)
http://codereview.chromium.org/173193/diff/49/59 File webkit/api/public/WebVector.h (right): http://codereview.chromium.org/173193/diff/49/59#newcode34 Line 34: #include <algorithm> is this include necessary?
11 years, 4 months ago (2009-08-23 18:57:35 UTC) #3
Andrew T Wilson (Slow)
http://codereview.chromium.org/173193/diff/49/59 File webkit/api/public/WebVector.h (right): http://codereview.chromium.org/173193/diff/49/59#newcode34 Line 34: #include <algorithm> On 2009/08/23 18:57:35, darin wrote: > ...
11 years, 4 months ago (2009-08-24 03:28:48 UTC) #4
darin (slow to review)
On Sun, Aug 23, 2009 at 8:28 PM, <atwilson@chromium.org> wrote: > > http://codereview.chromium.org/173193/diff/49/59 > File ...
11 years, 4 months ago (2009-08-24 16:14:07 UTC) #5
Andrew T Wilson (Slow)
nativewebworker_impl.cc generated compilation errors when (indirectly) including WebVector.h, because WebVector.h uses std::swap(). None of the ...
11 years, 4 months ago (2009-08-24 16:25:27 UTC) #6
Andrew T Wilson (Slow)
FWIW, poking around in xcode it seems that stl_algo.h and stl_algobase.h are where std::swap() is ...
11 years, 4 months ago (2009-08-24 16:31:50 UTC) #7
darin (slow to review)
On Mon, Aug 24, 2009 at 9:25 AM, Drew Wilson <atwilson@chromium.org> wrote: > nativewebworker_impl.cc generated ...
11 years, 4 months ago (2009-08-24 16:34:47 UTC) #8
darin (slow to review)
Right. We should delete the #include <utility> line and replace it with #include <algorithm> since ...
11 years, 4 months ago (2009-08-24 17:03:28 UTC) #9
Andrew T Wilson (Slow)
OK, so it sounds like <algorithm> is acceptable here then, given that <utility> doesn't pull ...
11 years, 4 months ago (2009-08-24 17:24:20 UTC) #10
jam
http://codereview.chromium.org/173193/diff/49/61 File chrome/browser/worker_host/message_port_dispatcher.cc (right): http://codereview.chromium.org/173193/diff/49/61#newcode150 Line 150: for (unsigned int i = 0; i < ...
11 years, 4 months ago (2009-08-24 19:44:08 UTC) #11
Andrew T Wilson (Slow)
OK, addressed all comments so far. http://codereview.chromium.org/173193/diff/49/66 File chrome/common/webmessageportchannel_impl.h (right): http://codereview.chromium.org/173193/diff/49/66#newcode9 Line 9: #include <utility> ...
11 years, 4 months ago (2009-08-25 02:38:21 UTC) #12
darin (slow to review)
Just some feedback on the WebKit API changes: http://codereview.chromium.org/173193/diff/93/1087 File webkit/api/public/WebWorker.h (right): http://codereview.chromium.org/173193/diff/93/1087#newcode34 Line 34: ...
11 years, 4 months ago (2009-08-25 15:54:56 UTC) #13
Andrew T Wilson (Slow)
http://codereview.chromium.org/173193/diff/93/1079 File webkit/api/src/PlatformMessagePortChannel.cpp (right): http://codereview.chromium.org/173193/diff/93/1079#newcode182 Line 182: OwnPtr<WebCore::MessagePortChannelArray> channels = message->channels(); On 2009/08/25 15:54:56, darin ...
11 years, 4 months ago (2009-08-25 17:43:04 UTC) #14
jam
11 years, 4 months ago (2009-08-25 18:00:49 UTC) #15
lgtm

Powered by Google App Engine
This is Rietveld 408576698