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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed)

Created:
4 years, 6 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, 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

Mojo: Add NotifyBadMessage API Adds a new public API for rejecting user messages read from a message pipe. The EDK can in some simple cases (e.g. messages from a direct child to its parent process) determine the source process of the bad message and notify the embedder via a callback API. BUG=607293 Committed: https://crrev.com/b46bf91c3d28d5da2fcbcde544d5aaf8c6fde7c6 Cr-Commit-Position: refs/heads/master@{#399382}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : nits #

Patch Set 5 #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 3

Patch Set 8 : no bindings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -35 lines) Patch
M mojo/edk/embedder/embedder.h View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M mojo/edk/embedder/entrypoints.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M mojo/edk/system/core.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M mojo/edk/system/core.cc View 1 2 3 4 3 chunks +23 lines, -2 lines 0 comments Download
M mojo/edk/system/message_for_transit.h View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/edk/system/multiprocess_message_pipe_unittest.cc View 1 2 3 4 5 6 2 chunks +66 lines, -0 lines 0 comments Download
M mojo/edk/system/node_channel.h View 1 2 3 4 7 chunks +19 lines, -2 lines 0 comments Download
M mojo/edk/system/node_channel.cc View 1 2 3 4 6 chunks +59 lines, -4 lines 0 comments Download
M mojo/edk/system/node_controller.h View 1 2 3 4 4 chunks +15 lines, -4 lines 0 comments Download
M mojo/edk/system/node_controller.cc View 1 2 3 4 10 chunks +43 lines, -15 lines 0 comments Download
M mojo/edk/system/ports_message.h View 3 chunks +7 lines, -0 lines 0 comments Download
M mojo/edk/test/mojo_test_base.h View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M mojo/edk/test/mojo_test_base.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M mojo/edk/test/multiprocess_test_helper.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M mojo/edk/test/multiprocess_test_helper.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/c/system/message_pipe.h View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/public/c/system/thunks.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/c/system/thunks.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/cpp/system/message.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Ken Rockot(use gerrit already)
4 years, 6 months ago (2016-06-07 17:51:21 UTC) #2
Anand Mistry (off Chromium)
I've taken a first glance, but need a little more time to think about this. ...
4 years, 6 months ago (2016-06-08 13:14:09 UTC) #3
Ken Rockot(use gerrit already)
On Jun 8, 2016 6:14 AM, <amistry@chromium.org> wrote: > > I've taken a first glance, ...
4 years, 6 months ago (2016-06-08 14:20:31 UTC) #4
Anand Mistry (off Chromium)
lgtm https://codereview.chromium.org/2043713004/diff/40001/mojo/edk/system/node_controller.cc File mojo/edk/system/node_controller.cc (right): https://codereview.chromium.org/2043713004/diff/40001/mojo/edk/system/node_controller.cc#newcode317 mojo/edk/system/node_controller.cc:317: peer->NotifyBadMessage(); Check peer != nullptr. The peer could ...
4 years, 6 months ago (2016-06-10 10:28:20 UTC) #5
Ken Rockot(use gerrit already)
Yuzhu, could you please take a look at the bindings changes? After talking with John ...
4 years, 6 months ago (2016-06-10 17:32:27 UTC) #7
yzshen1
https://codereview.chromium.org/2043713004/diff/120001/mojo/public/cpp/bindings/lib/connector.cc File mojo/public/cpp/bindings/lib/connector.cc (right): https://codereview.chromium.org/2043713004/diff/120001/mojo/public/cpp/bindings/lib/connector.cc#newcode272 mojo/public/cpp/bindings/lib/connector.cc:272: message.NotifyBadMessage(interface_name_); For multiplex router, we may get here because ...
4 years, 6 months ago (2016-06-11 00:11:00 UTC) #8
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2043713004/diff/120001/mojo/public/cpp/bindings/lib/connector.cc File mojo/public/cpp/bindings/lib/connector.cc (right): https://codereview.chromium.org/2043713004/diff/120001/mojo/public/cpp/bindings/lib/connector.cc#newcode272 mojo/public/cpp/bindings/lib/connector.cc:272: message.NotifyBadMessage(interface_name_); On 2016/06/11 at 00:10:59, yzshen1 wrote: > For ...
4 years, 6 months ago (2016-06-11 21:48:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043713004/140001
4 years, 6 months ago (2016-06-11 21:48:40 UTC) #13
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-11 23:18:29 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-11 23:18:31 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-11 23:20:20 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b46bf91c3d28d5da2fcbcde544d5aaf8c6fde7c6
Cr-Commit-Position: refs/heads/master@{#399382}

Powered by Google App Engine
This is Rietveld 408576698