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

Issue 2277853003: Use unions for interface control messages. (Closed)

Created:
4 years, 4 months ago by Sam McNally
Modified:
4 years, 3 months ago
Reviewers:
yzshen1, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use unions for interface control messages. Interface control messages were added before union support was ready so the structs used for messages manually imitate unions. Now that union support is ready, this workaround is no longer necessary and the structs used for interface control messages can contain unions of the possible message types. Committed: https://crrev.com/f8af806ea3b60756271f9f3fe56d47965d29337d Cr-Commit-Position: refs/heads/master@{#414775}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -126 lines) Patch
M mojo/public/cpp/bindings/lib/control_message_handler.cc View 1 2 3 4 5 chunks +41 lines, -23 lines 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_proxy.cc View 3 chunks +50 lines, -41 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validation_util.cc View 1 2 3 2 chunks +11 lines, -8 lines 0 comments Download
M mojo/public/interfaces/bindings/interface_control_messages.mojom View 1 3 chunks +11 lines, -39 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Interface.java View 1 2 3 chunks +18 lines, -8 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceControlMessagesHelper.java View 1 3 chunks +21 lines, -5 lines 0 comments Download
M mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl View 1 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (39 generated)
Sam McNally
4 years, 3 months ago (2016-08-25 20:32:43 UTC) #23
yzshen1
https://codereview.chromium.org/2277853003/diff/60001/mojo/public/cpp/bindings/lib/control_message_handler.cc File mojo/public/cpp/bindings/lib/control_message_handler.cc (right): https://codereview.chromium.org/2277853003/diff/60001/mojo/public/cpp/bindings/lib/control_message_handler.cc#newcode65 mojo/public/cpp/bindings/lib/control_message_handler.cc:65: return false; If it is an unknown input, we ...
4 years, 3 months ago (2016-08-25 21:08:57 UTC) #24
Sam McNally
https://codereview.chromium.org/2277853003/diff/60001/mojo/public/cpp/bindings/lib/control_message_handler.cc File mojo/public/cpp/bindings/lib/control_message_handler.cc (right): https://codereview.chromium.org/2277853003/diff/60001/mojo/public/cpp/bindings/lib/control_message_handler.cc#newcode65 mojo/public/cpp/bindings/lib/control_message_handler.cc:65: return false; On 2016/08/25 21:08:57, yzshen1 wrote: > If ...
4 years, 3 months ago (2016-08-25 21:47:51 UTC) #27
yzshen1
LGTM Thanks!
4 years, 3 months ago (2016-08-25 21:51:40 UTC) #28
Sam McNally
+dcheng for the mojom
4 years, 3 months ago (2016-08-26 00:55:38 UTC) #36
dcheng
Sorry, I'm not really sure what's going on in this CL. Is there a bug ...
4 years, 3 months ago (2016-08-26 05:29:53 UTC) #37
Sam McNally
On 2016/08/26 05:29:53, dcheng wrote: > Sorry, I'm not really sure what's going on in ...
4 years, 3 months ago (2016-08-26 16:41:30 UTC) #39
dcheng
LGTM https://codereview.chromium.org/2277853003/diff/100001/mojo/public/cpp/bindings/lib/control_message_handler.cc File mojo/public/cpp/bindings/lib/control_message_handler.cc (right): https://codereview.chromium.org/2277853003/diff/100001/mojo/public/cpp/bindings/lib/control_message_handler.cc#newcode65 mojo/public/cpp/bindings/lib/control_message_handler.cc:65: output = nullptr; I personally might find this ...
4 years, 3 months ago (2016-08-26 17:38:32 UTC) #40
Sam McNally
https://codereview.chromium.org/2277853003/diff/100001/mojo/public/cpp/bindings/lib/control_message_handler.cc File mojo/public/cpp/bindings/lib/control_message_handler.cc (right): https://codereview.chromium.org/2277853003/diff/100001/mojo/public/cpp/bindings/lib/control_message_handler.cc#newcode65 mojo/public/cpp/bindings/lib/control_message_handler.cc:65: output = nullptr; On 2016/08/26 17:38:32, dcheng wrote: > ...
4 years, 3 months ago (2016-08-26 17:47:26 UTC) #44
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/2277853003/160001
4 years, 3 months ago (2016-08-26 17:49:06 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 3 months ago (2016-08-26 19:20:24 UTC) #49
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 19:21:31 UTC) #51
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f8af806ea3b60756271f9f3fe56d47965d29337d
Cr-Commit-Position: refs/heads/master@{#414775}

Powered by Google App Engine
This is Rietveld 408576698