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

Issue 2004643002: Implement BroadcastChannel (Closed)

Created:
4 years, 7 months ago by Marijn Kruisselbrink
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, blundell+watchlist_chromium.org, chasej+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, droger+watchlist_chromium.org, iclelland+watch_chromium.org, jkarlin+watch_chromium.org, kinuko+watch, nasko+codewatch_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, sdefresne+watchlist_chromium.org, viettrungluu+watch_chromium.org, wjmaclean, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement BroadcastChannel as specified in https://html.spec.whatwg.org/multipage/comms.html#broadcastchannel BUG=161070 Committed: https://crrev.com/e69cdae3ae32d3a52e2089c95b34c45ec023a0b9 Cr-Commit-Position: refs/heads/master@{#403331}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : use proper origin type #

Patch Set 4 : rebase and fix gyp files #

Patch Set 5 : use different mojom api with more logic in renderer #

Patch Set 6 : try to fix gyp and test expectations #

Patch Set 7 : rebase and slightly improved tests #

Total comments: 5

Patch Set 8 : add StrongAssociatedBinding #

Patch Set 9 : better tests #

Total comments: 21

Patch Set 10 : address some comments #

Patch Set 11 : make BCChannelConnection garbage collected #

Patch Set 12 : rebase on hashtraits change #

Total comments: 27

Patch Set 13 : address some comments #

Total comments: 3

Patch Set 14 : close channel on contextDestroyed #

Patch Set 15 : revert to mojo interface of PS4 to have less logic in renderer #

Total comments: 16

Patch Set 16 : address comments #

Total comments: 2

Patch Set 17 : remove no longer needed thread hopping #

Total comments: 2

Patch Set 18 : nit #

Total comments: 4

Patch Set 19 : rename to BroadcastChannelProvider #

Patch Set 20 : move gyp file to //components #

Patch Set 21 : try to fix ios gyp build #

Total comments: 8

Patch Set 22 : address dcheng's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+997 lines, -14 lines) Patch
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A components/webmessaging.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +69 lines, -0 lines 0 comments Download
A + components/webmessaging/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -4 lines 0 comments Download
A + components/webmessaging/DEPS View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/webmessaging/OWNERS View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A components/webmessaging/broadcast_channel_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +46 lines, -0 lines 0 comments Download
A components/webmessaging/broadcast_channel_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +115 lines, -0 lines 0 comments Download
A + components/webmessaging/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -3 lines 0 comments Download
A + components/webmessaging/public/interfaces/OWNERS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A components/webmessaging/public/interfaces/broadcast_channel.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +34 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +7 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +14 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/basics.html View 1 2 3 4 5 6 7 8 1 chunk +120 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/blobs.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +66 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/interface.html View 1 chunk +73 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/resources/sandboxed.html View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/resources/worker.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/broadcastchannel/workers.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +108 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTargetFactory.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +138 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.idl View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/broadcastchannel/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/broadcastchannel/OWNERS View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/ServiceRegistry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 84 (19 generated)
Marijn Kruisselbrink
This is nowhere near ready to be submitted (so please ignore typos, naming, missing/wrong comments, ...
4 years, 7 months ago (2016-05-20 23:24:00 UTC) #3
Ken Rockot(use gerrit already)
It makes sense as a component imho, primarily because it doesn't make sense as its ...
4 years, 7 months ago (2016-05-21 00:01:18 UTC) #4
Marijn Kruisselbrink
On 2016/05/21 at 00:01:18, rockot wrote: > It makes sense as a component imho, primarily ...
4 years, 7 months ago (2016-05-21 00:34:21 UTC) #5
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/20001/components/webmessaging/broadcast_channel.mojom File components/webmessaging/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/20001/components/webmessaging/broadcast_channel.mojom#newcode20 components/webmessaging/broadcast_channel.mojom:20: ConnectToChannel(string origin, string name, associated BroadcastChannelClient receiver, associated BroadcastChannelClient& ...
4 years, 7 months ago (2016-05-21 00:36:15 UTC) #6
Ken Rockot(use gerrit already)
On 2016/05/21 at 00:34:21, mek wrote: > On 2016/05/21 at 00:01:18, rockot wrote: > > ...
4 years, 7 months ago (2016-05-25 16:12:19 UTC) #7
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/20001/components/webmessaging/broadcast_channel.mojom File components/webmessaging/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/20001/components/webmessaging/broadcast_channel.mojom#newcode20 components/webmessaging/broadcast_channel.mojom:20: ConnectToChannel(string origin, string name, associated BroadcastChannelClient receiver, associated BroadcastChannelClient& ...
4 years, 6 months ago (2016-05-31 23:40:54 UTC) #9
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/140001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp (right): https://codereview.chromium.org/2004643002/diff/140001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp#newcode93 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp:93: m_binding.set_connection_error_handler(createBaseCallback(bind(&BroadcastChannelConnection::onError, this))); Oh, one more mojo specific question: since ...
4 years, 6 months ago (2016-05-31 23:57:09 UTC) #10
Ken Rockot(use gerrit already)
On 2016/05/31 at 23:57:09, mek wrote: > https://codereview.chromium.org/2004643002/diff/140001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp > File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp (right): > > https://codereview.chromium.org/2004643002/diff/140001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp#newcode93 ...
4 years, 6 months ago (2016-06-01 15:41:38 UTC) #11
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode21 components/webmessaging/public/interfaces/broadcast_channel.mojom:21: Subscribe(url.mojom.Origin origin, string name, associated BroadcastChannelClient client); Sorry, I ...
4 years, 6 months ago (2016-06-01 16:07:50 UTC) #12
Marijn Kruisselbrink
Okay, added (and used) a new mojo::StrongAssociatedBinding class. https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode21 components/webmessaging/public/interfaces/broadcast_channel.mojom:21: Subscribe(url.mojom.Origin ...
4 years, 6 months ago (2016-06-01 21:37:12 UTC) #13
Marijn Kruisselbrink
+kinuko: would you mind reviewing this?
4 years, 6 months ago (2016-06-01 21:37:35 UTC) #15
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode21 components/webmessaging/public/interfaces/broadcast_channel.mojom:21: Subscribe(url.mojom.Origin origin, string name, associated BroadcastChannelClient client); On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 21:47:08 UTC) #16
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/140001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode21 components/webmessaging/public/interfaces/broadcast_channel.mojom:21: Subscribe(url.mojom.Origin origin, string name, associated BroadcastChannelClient client); On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 22:07:59 UTC) #17
haraken
https://codereview.chromium.org/2004643002/diff/180001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/180001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode23 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:23: channel->suspendIfNeeded(); If you make BroadcastChannel a ContextLifecycleObserver, you don't ...
4 years, 6 months ago (2016-06-02 04:23:42 UTC) #19
Marijn Kruisselbrink
Thanks for all the comments. I tried to explain a bit more how I ended ...
4 years, 6 months ago (2016-06-02 18:33:30 UTC) #20
haraken
I don't yet understood all of your requirements, but let me post some ideas. I ...
4 years, 6 months ago (2016-06-03 05:33:03 UTC) #21
Marijn Kruisselbrink
Okay, I think I managed to move all of BroadcastChannelConnection to be properly garbage collected. ...
4 years, 6 months ago (2016-06-03 20:37:04 UTC) #22
haraken
+sigbjornf, +hiroshige (See my comments below.) > Okay, I think I managed to move all ...
4 years, 6 months ago (2016-06-06 02:05:48 UTC) #24
esprehn
Hmm I'm not a big fan of the number of statics here. We should be ...
4 years, 6 months ago (2016-06-06 02:29:42 UTC) #26
haraken
On 2016/06/06 02:29:42, esprehn wrote: > Hmm I'm not a big fan of the number ...
4 years, 6 months ago (2016-06-06 02:44:59 UTC) #27
sof
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp#newcode42 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.cpp:42: DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<Persistent<ConnectionMap>>, connectionMap, new ThreadSpecific<Persistent<ConnectionMap>>); On 2016/06/06 02:05:47, haraken wrote: ...
4 years, 6 months ago (2016-06-06 06:35:45 UTC) #28
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode58 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:58: ALLOW_UNUSED_LOCAL(success); On 2016/06/06 at 02:05:47, haraken wrote: > Nit: ...
4 years, 6 months ago (2016-06-06 20:05:30 UTC) #29
haraken
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode86 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:86: , ContextLifecycleObserver(executionContext) On 2016/06/06 02:05:47, haraken wrote: > > ...
4 years, 6 months ago (2016-06-07 00:53:26 UTC) #30
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode86 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:86: , ContextLifecycleObserver(executionContext) On 2016/06/07 at 00:53:26, haraken wrote: > ...
4 years, 6 months ago (2016-06-07 01:18:40 UTC) #31
haraken
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode86 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:86: , ContextLifecycleObserver(executionContext) On 2016/06/07 01:18:39, Marijn Kruisselbrink wrote: > ...
4 years, 6 months ago (2016-06-07 01:29:56 UTC) #32
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h (right): https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h#newcode23 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h:23: , public webmessaging::mojom::blink::BroadcastChannelClient { On 2016/06/07 at 01:29:55, haraken ...
4 years, 6 months ago (2016-06-07 17:41:39 UTC) #33
haraken
On 2016/06/07 17:41:39, Marijn Kruisselbrink wrote: > https://codereview.chromium.org/2004643002/diff/240001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h > File > third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannelConnection.h > (right): > ...
4 years, 6 months ago (2016-06-08 00:04:10 UTC) #34
Marijn Kruisselbrink
On 2016/06/08 at 00:04:10, haraken wrote: > On 2016/06/07 17:41:39, Marijn Kruisselbrink wrote: > > ...
4 years, 6 months ago (2016-06-08 00:10:58 UTC) #35
haraken
On 2016/06/08 00:10:58, Marijn Kruisselbrink wrote: > On 2016/06/08 at 00:04:10, haraken wrote: > > ...
4 years, 6 months ago (2016-06-08 00:52:48 UTC) #36
Marijn Kruisselbrink
On 2016/06/08 at 00:52:48, haraken wrote: > On 2016/06/08 00:10:58, Marijn Kruisselbrink wrote: > > ...
4 years, 6 months ago (2016-06-08 01:12:30 UTC) #37
Marijn Kruisselbrink
(and none of this matters too much for this CL, I know now what to ...
4 years, 6 months ago (2016-06-08 01:15:04 UTC) #38
haraken
On 2016/06/08 01:12:30, Marijn Kruisselbrink wrote: > On 2016/06/08 at 00:52:48, haraken wrote: > > ...
4 years, 6 months ago (2016-06-08 01:15:48 UTC) #39
Marijn Kruisselbrink
Okay, I reverted back to having minimum logic in the renderer, even though that is ...
4 years, 6 months ago (2016-06-08 21:43:58 UTC) #41
haraken
In terms of implementation, LGTM. https://codereview.chromium.org/2004643002/diff/320001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/320001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode28 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:28: webmessaging::mojom::blink::BroadcastChannelServicePtr& getThreadSpecificService() Add a ...
4 years, 6 months ago (2016-06-09 02:09:37 UTC) #42
kinuko
https://codereview.chromium.org/2004643002/diff/320001/components/webmessaging/broadcast_channel_service.cc File components/webmessaging/broadcast_channel_service.cc (right): https://codereview.chromium.org/2004643002/diff/320001/components/webmessaging/broadcast_channel_service.cc#newcode28 components/webmessaging/broadcast_channel_service.cc:28: mojom::BroadcastChannelClient* client() const { return client_.get(); } nit: could ...
4 years, 6 months ago (2016-06-09 09:14:58 UTC) #43
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/320001/components/webmessaging/broadcast_channel_service.cc File components/webmessaging/broadcast_channel_service.cc (right): https://codereview.chromium.org/2004643002/diff/320001/components/webmessaging/broadcast_channel_service.cc#newcode28 components/webmessaging/broadcast_channel_service.cc:28: mojom::BroadcastChannelClient* client() const { return client_.get(); } On 2016/06/09 ...
4 years, 6 months ago (2016-06-22 18:46:57 UTC) #44
kinuko
https://codereview.chromium.org/2004643002/diff/340001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/340001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode38 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:38: threadSafeBind(&connectToService, passed(mojo::GetProxy(&*service)))); I was looking into connectToRemoteService impl and ...
4 years, 6 months ago (2016-06-23 15:29:57 UTC) #45
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/340001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp File third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp (right): https://codereview.chromium.org/2004643002/diff/340001/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp#newcode38 third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp:38: threadSafeBind(&connectToService, passed(mojo::GetProxy(&*service)))); On 2016/06/23 at 15:29:57, kinuko wrote: > ...
4 years, 6 months ago (2016-06-23 16:32:32 UTC) #46
kinuko
lgtm https://codereview.chromium.org/2004643002/diff/360001/components/webmessaging/broadcast_channel_service.cc File components/webmessaging/broadcast_channel_service.cc (right): https://codereview.chromium.org/2004643002/diff/360001/components/webmessaging/broadcast_channel_service.cc#newcode112 components/webmessaging/broadcast_channel_service.cc:112: } nit: no {} for one-line body for ...
4 years, 6 months ago (2016-06-24 14:28:03 UTC) #47
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/360001/components/webmessaging/broadcast_channel_service.cc File components/webmessaging/broadcast_channel_service.cc (right): https://codereview.chromium.org/2004643002/diff/360001/components/webmessaging/broadcast_channel_service.cc#newcode112 components/webmessaging/broadcast_channel_service.cc:112: } On 2016/06/24 at 14:28:03, kinuko wrote: > nit: ...
4 years, 6 months ago (2016-06-24 18:12:26 UTC) #48
Marijn Kruisselbrink
+blundell for components/ OWNERS +dcheng for IPC OWNERS
4 years, 6 months ago (2016-06-24 18:13:06 UTC) #50
Ken Rockot(use gerrit already)
Generally LG minus naming issue https://codereview.chromium.org/2004643002/diff/380001/components/webmessaging/public/interfaces/BUILD.gn File components/webmessaging/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2004643002/diff/380001/components/webmessaging/public/interfaces/BUILD.gn#newcode7 components/webmessaging/public/interfaces/BUILD.gn:7: mojom_files = [ "broadcast_channel.mojom" ...
4 years, 6 months ago (2016-06-24 18:14:51 UTC) #52
Marijn Kruisselbrink
(and adding back reviewers that rockot@ I assume accidentally removed) https://codereview.chromium.org/2004643002/diff/380001/components/webmessaging/public/interfaces/BUILD.gn File components/webmessaging/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2004643002/diff/380001/components/webmessaging/public/interfaces/BUILD.gn#newcode7 ...
4 years, 6 months ago (2016-06-24 18:37:11 UTC) #54
Ken Rockot(use gerrit already)
Oops, sorry about that. I assume I failed at keyboarding. LGTM
4 years, 6 months ago (2016-06-24 19:08:14 UTC) #55
blundell
Can you add the new component to //components/components.gyp and //components/BUILD.gn? Also add per-file OWNERS to ...
4 years, 5 months ago (2016-06-27 07:46:40 UTC) #56
Marijn Kruisselbrink
On 2016/06/27 at 07:46:40, blundell wrote: > Can you add the new component to //components/components.gyp ...
4 years, 5 months ago (2016-06-27 16:09:58 UTC) #57
blundell
On 2016/06/27 16:09:58, Marijn Kruisselbrink wrote: > On 2016/06/27 at 07:46:40, blundell wrote: > > ...
4 years, 5 months ago (2016-06-27 16:21:43 UTC) #58
Marijn Kruisselbrink
On 2016/06/27 at 16:21:43, blundell wrote: > On 2016/06/27 16:09:58, Marijn Kruisselbrink wrote: > > ...
4 years, 5 months ago (2016-06-27 16:28:12 UTC) #59
Marijn Kruisselbrink
On 2016/06/27 at 16:28:12, Marijn Kruisselbrink wrote: > On 2016/06/27 at 16:21:43, blundell wrote: > ...
4 years, 5 months ago (2016-06-27 16:53:11 UTC) #60
blundell
//components lgtm, thanks On 2016/06/27 16:53:11, Marijn Kruisselbrink wrote: > On 2016/06/27 at 16:28:12, Marijn ...
4 years, 5 months ago (2016-06-27 17:05:04 UTC) #61
Marijn Kruisselbrink
dcheng: ping?
4 years, 5 months ago (2016-06-27 21:15:49 UTC) #62
dcheng
mojom lgtm with a question and two nits https://codereview.chromium.org/2004643002/diff/440001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/440001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode9 components/webmessaging/public/interfaces/broadcast_channel.mojom:9: interface ...
4 years, 5 months ago (2016-06-30 08:23:12 UTC) #63
Marijn Kruisselbrink
https://codereview.chromium.org/2004643002/diff/440001/components/webmessaging/public/interfaces/broadcast_channel.mojom File components/webmessaging/public/interfaces/broadcast_channel.mojom (right): https://codereview.chromium.org/2004643002/diff/440001/components/webmessaging/public/interfaces/broadcast_channel.mojom#newcode9 components/webmessaging/public/interfaces/broadcast_channel.mojom:9: interface BroadcastChannelClient { On 2016/06/30 at 08:23:11, dcheng wrote: ...
4 years, 5 months ago (2016-06-30 17:21:57 UTC) #64
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/2004643002/460001
4 years, 5 months ago (2016-06-30 17:51:17 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/248564)
4 years, 5 months ago (2016-06-30 19:04:07 UTC) #69
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/2004643002/460001
4 years, 5 months ago (2016-06-30 19:06:33 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/248694)
4 years, 5 months ago (2016-06-30 21:29:43 UTC) #73
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/2004643002/460001
4 years, 5 months ago (2016-06-30 21:30:58 UTC) #75
commit-bot: I haz the power
Committed patchset #22 (id:460001)
4 years, 5 months ago (2016-06-30 23:19:40 UTC) #76
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 23:19:49 UTC) #77
commit-bot: I haz the power
Patchset 22 (id:??) landed as https://crrev.com/e69cdae3ae32d3a52e2089c95b34c45ec023a0b9 Cr-Commit-Position: refs/heads/master@{#403331}
4 years, 5 months ago (2016-06-30 23:23:26 UTC) #79
jam
Hi I just saw this. I don't think this should go into a component yet ...
4 years, 5 months ago (2016-07-19 17:12:57 UTC) #81
blundell
On 2016/07/19 17:12:57, jam wrote: > Hi I just saw this. > > I don't ...
4 years, 5 months ago (2016-07-20 06:59:46 UTC) #82
Marijn Kruisselbrink
On 2016/07/20 at 06:59:46, blundell wrote: > On 2016/07/19 17:12:57, jam wrote: > > Hi ...
4 years, 5 months ago (2016-07-20 21:09:59 UTC) #83
jam
4 years, 5 months ago (2016-07-21 00:44:07 UTC) #84
Message was sent while issue was closed.
On 2016/07/20 21:09:59, Marijn Kruisselbrink wrote:
> On 2016/07/20 at 06:59:46, blundell wrote:
> > On 2016/07/19 17:12:57, jam wrote:
> > > Hi I just saw this.
> > > 
> > > I don't think this should go into a component yet since it's not a generic
> > > service, but one that's only used by the web platform. We're trying to
avoid
> > > creating new components for stuff that's only used by content/browser and
> blink.
> > > components/ or services/ should be generic code that'll have multiple
users.
> > > 
> > > In this specific case, the mojom should be in
> > > third_party/WebKit/public/platform/modules/broadcastchannel.
content/browser
> > > would include the generated mojo header and
> > > components/webmessaging/broadcast_channel_provider.* move to
> > > content/browser/webmessaging/ (with its own owners file).
> > > 
> > > In the future, as we decompose content/browser, we can depend on shared
> generic
> > > services such as  a pub/sub component to implement broadcast channel. That
> way
> > > the code that's in content/browser now can move completely into blink. See
> more
> > > information about this plan at
> > >
>
https://docs.google.com/document/d/15I7sQyQo6zsqXVNAlVd520tdGaS8FCicZHrN0yRu-...
> > > and
> > >
>
https://docs.google.com/spreadsheets/d/15wDDlteNYDIv0QlG2OKofAOssBtwb225076ad...
> > > (last row). Since we're not yet at this stage, that's why I suggest moving
> the
> > > browser side code to content/browser like other web platform features,
until
> > > we're ready to decompose that directory using generic services.
> > 
> > That SGTM. That way we would avoid adding a dependency from either Blink or
> //content to //components.
> 
> Sure, I've given up on trying to understand what the content modularization is
> trying to do exactly in practice

Sorry to hear that, we're going to give a presentation that should hopefully
make things clearer.

In the meantime, until we have these generic services, the general rule is that
the renderer-side code should be in blink, and the browser side code in
content/browser.

> so feel free to move code around to wherever
> it makes the most sense in whatever the current plan is.

I've sent out https://codereview.chromium.org/2158913006/

Powered by Google App Engine
This is Rietveld 408576698