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

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)

Created:
4 years, 3 months ago by dcheng
Modified:
4 years, 2 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), Ken Rockot(use gerrit already), jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components //mojo/public/cpp/bindings has global state: putting it in a source set is trouble in a component build, since it's easy to end up with multiple copies of globals in different components. //mojo/public/cpp/system is a dependency of bindings, so change it to a component as well to avoid multiple definitions in different components that depend on bindings. BUG=648397 Committed: https://crrev.com/9c3e65898eceec294d486b1968ec0e2b7ee8f120 Cr-Commit-Position: refs/heads/master@{#420561}

Patch Set 1 #

Patch Set 2 : Add new file. #

Patch Set 3 : Windows fixes #

Patch Set 4 : Windows build, warning free #

Total comments: 3

Patch Set 5 : Rebase #

Total comments: 8

Patch Set 6 : address review comments #

Patch Set 7 : Revert mojo.gni use alternate fix #

Total comments: 2

Patch Set 8 : Fix wording #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -84 lines) Patch
M mojo/public/cpp/bindings/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +23 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/associated_group.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/associated_group_controller.h View 2 chunks +3 lines, -2 lines 0 comments Download
A mojo/public/cpp/bindings/bindings_export.h View 1 chunk +34 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/connector.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/filter_chain.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/interface_endpoint_client.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_internal.h View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.h View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_handler.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_proxy.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/fixed_buffer.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/message_builder.h View 3 chunks +4 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_internal.h View 3 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/lib/native_struct_data.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/native_struct_serialization.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/router.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/serialization_context.h View 3 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validation_context.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/validation_errors.h View 1 2 3 chunks +11 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validation_util.h View 1 2 4 chunks +34 lines, -23 lines 0 comments Download
M mojo/public/cpp/bindings/message.h View 1 2 3 4 5 6 chunks +8 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/message_header_validator.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/native_struct.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/pipe_control_message_handler.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/pipe_control_message_proxy.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/string_traits_string16.h View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/sync_call_restrictions.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/sync_handle_registry.h View 2 chunks +3 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/sync_handle_watcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/cpp/system/BUILD.gn View 3 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/system/buffer.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M mojo/public/cpp/system/platform_handle.h View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
A mojo/public/cpp/system/system_export.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M mojo/public/cpp/system/watcher.h View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/interfaces/bindings/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
dcheng
yzshen@ verified that it fixed another issue he was seeing; I'm going to be testing ...
4 years, 3 months ago (2016-09-21 23:21:03 UTC) #2
dcheng
I've confirmed that this fixes the test hang in https://codereview.chromium.org/2345423002/
4 years, 3 months ago (2016-09-22 17:38:45 UTC) #11
yzshen1
Thanks! https://codereview.chromium.org/2358133002/diff/80001/mojo/public/cpp/bindings/lib/validation_util.h File mojo/public/cpp/bindings/lib/validation_util.h (right): https://codereview.chromium.org/2358133002/diff/80001/mojo/public/cpp/bindings/lib/validation_util.h#newcode50 mojo/public/cpp/bindings/lib/validation_util.h:50: MOJO_CPP_BINDINGS_EXPORT bool ValidateStructHeaderAndClaimMemory( I notice that some places ...
4 years, 3 months ago (2016-09-22 18:26:27 UTC) #12
yzshen1
https://codereview.chromium.org/2358133002/diff/80001/mojo/public/tools/bindings/mojom.gni File mojo/public/tools/bindings/mojom.gni (right): https://codereview.chromium.org/2358133002/diff/80001/mojo/public/tools/bindings/mojom.gni#newcode209 mojo/public/tools/bindings/mojom.gni:209: defines += [ invoker.export_define ] On 2016/09/22 18:26:27, yzshen1 ...
4 years, 3 months ago (2016-09-22 18:34:10 UTC) #13
yzshen1
https://codereview.chromium.org/2358133002/diff/80001/mojo/public/tools/bindings/mojom.gni File mojo/public/tools/bindings/mojom.gni (right): https://codereview.chromium.org/2358133002/diff/80001/mojo/public/tools/bindings/mojom.gni#newcode209 mojo/public/tools/bindings/mojom.gni:209: defines += [ invoker.export_define ] On 2016/09/22 18:34:10, yzshen1 ...
4 years, 3 months ago (2016-09-22 19:39:36 UTC) #14
yzshen1
lgtm
4 years, 3 months ago (2016-09-22 19:40:03 UTC) #17
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/2358133002/80001
4 years, 3 months ago (2016-09-22 19:40:21 UTC) #18
yzshen1
(Mistakenly hit the l-g-t-m button.)
4 years, 3 months ago (2016-09-22 19:42:30 UTC) #19
dcheng
PTAL, I hope I listed the sources correctly... https://codereview.chromium.org/2358133002/diff/80001/mojo/public/cpp/bindings/lib/validation_util.h File mojo/public/cpp/bindings/lib/validation_util.h (right): https://codereview.chromium.org/2358133002/diff/80001/mojo/public/cpp/bindings/lib/validation_util.h#newcode50 mojo/public/cpp/bindings/lib/validation_util.h:50: MOJO_CPP_BINDINGS_EXPORT ...
4 years, 3 months ago (2016-09-22 22:18:22 UTC) #21
yzshen1
LGTM Thanks! https://codereview.chromium.org/2358133002/diff/120001/mojo/public/cpp/bindings/BUILD.gn File mojo/public/cpp/bindings/BUILD.gn (right): https://codereview.chromium.org/2358133002/diff/120001/mojo/public/cpp/bindings/BUILD.gn#newcode12 mojo/public/cpp/bindings/BUILD.gn:12: # in Windows components build, this target ...
4 years, 3 months ago (2016-09-22 22:31:15 UTC) #22
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/2358133002/140001
4 years, 3 months ago (2016-09-23 01:44:05 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-23 03:11:15 UTC) #26
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9c3e65898eceec294d486b1968ec0e2b7ee8f120 Cr-Commit-Position: refs/heads/master@{#420561}
4 years, 3 months ago (2016-09-23 03:13:35 UTC) #28
dcheng
4 years, 2 months ago (2016-09-24 01:06:45 UTC) #29
Message was sent while issue was closed.
(Sending out drafts that I forgot to publish)

https://codereview.chromium.org/2358133002/diff/120001/mojo/public/cpp/bindin...
File mojo/public/cpp/bindings/BUILD.gn (right):

https://codereview.chromium.org/2358133002/diff/120001/mojo/public/cpp/bindin...
mojo/public/cpp/bindings/BUILD.gn:12: # in Windows components build, this target
depends on the generated .cc
On 2016/09/22 22:31:15, yzshen1 (OOO Sep26-Oct30) wrote:
> nit: please consider changing ".cc" to "C++", because we have both .cc and .h
> files here. 

Done.

Powered by Google App Engine
This is Rietveld 408576698