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

Issue 273233002: Mojo cpp bindings: add support for validating incoming messages. (Closed)

Created:
6 years, 7 months ago by yzshen1
Modified:
6 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, ben+mojo_chromium.org
Visibility:
Public.

Description

Mojo cpp bindings: add support for validating incoming messages. The actual validating logic will be in a separate CL. BUG=None TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270857

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase onto the InterfacePtr change #

Total comments: 11

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -72 lines) Patch
M mojo/mojo_public.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/filter_chain.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/filter_chain.cc View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_impl_internal.h View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_internal.h View 1 2 3 4 5 6 5 chunks +9 lines, -38 lines 0 comments Download
A mojo/public/cpp/bindings/lib/message_filter.cc View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_header_validator.h View 1 2 3 4 1 chunk +8 lines, -7 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_header_validator.cc View 1 2 3 4 2 chunks +3 lines, -10 lines 0 comments Download
M mojo/public/cpp/bindings/lib/router.h View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/router.cc View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/shared_data.h View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/message.h View 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/message_filter.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/no_interface.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/sync_dispatcher.h View 1 2 3 4 3 chunks +11 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/router_unittest.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A mojo/public/tools/bindings/generators/cpp_templates/interface_request_validator_declaration.tmpl View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
A mojo/public/tools/bindings/generators/cpp_templates/interface_response_validator_declaration.tmpl View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
yzshen1
Hi, Darin. Would you please take a look? Thanks! https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h File mojo/public/cpp/bindings/lib/interface_ptr_internal.h (right): https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h#newcode64 mojo/public/cpp/bindings/lib/interface_ptr_internal.h:64: ...
6 years, 7 months ago (2014-05-12 16:35:25 UTC) #1
darin (slow to review)
https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h File mojo/public/cpp/bindings/lib/interface_ptr_internal.h (right): https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h#newcode52 mojo/public/cpp/bindings/lib/interface_ptr_internal.h:52: internal::ValidatorChain validators; nit: already in the internal namespace https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h#newcode64 ...
6 years, 7 months ago (2014-05-12 17:28:26 UTC) #2
darin (slow to review)
https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/router.cc File mojo/public/cpp/bindings/lib/router.cc (right): https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/router.cc#newcode75 mojo/public/cpp/bindings/lib/router.cc:75: connector_.set_incoming_receiver(validators_.GetHead()); Oh, I see an issue with my suggestion. ...
6 years, 7 months ago (2014-05-12 17:39:11 UTC) #3
yzshen1
Thanks, Darin! Please take another look! https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h File mojo/public/cpp/bindings/lib/interface_ptr_internal.h (right): https://codereview.chromium.org/273233002/diff/30001/mojo/public/cpp/bindings/lib/interface_ptr_internal.h#newcode52 mojo/public/cpp/bindings/lib/interface_ptr_internal.h:52: internal::ValidatorChain validators; On ...
6 years, 7 months ago (2014-05-12 21:59:57 UTC) #4
yzshen1
Friendly ping, Darin. (But if you are busy, this CL could wait.) Thanks!
6 years, 7 months ago (2014-05-14 05:41:24 UTC) #5
darin (slow to review)
On 2014/05/12 21:59:57, yzshen1 wrote: > Thanks, Darin! > > Please take another look! Sorry ...
6 years, 7 months ago (2014-05-14 06:30:46 UTC) #6
yzshen1
> > A relevant issue for discussion: > > I have the feeling that it ...
6 years, 7 months ago (2014-05-14 06:40:02 UTC) #7
darin (slow to review)
https://codereview.chromium.org/273233002/diff/50001/mojo/public/cpp/bindings/lib/router.cc File mojo/public/cpp/bindings/lib/router.cc (right): https://codereview.chromium.org/273233002/diff/50001/mojo/public/cpp/bindings/lib/router.cc#newcode69 mojo/public/cpp/bindings/lib/router.cc:69: validators_(validators.Pass()), s/validators/filters/ https://codereview.chromium.org/273233002/diff/50001/mojo/public/cpp/bindings/lib/router.cc#newcode75 mojo/public/cpp/bindings/lib/router.cc:75: connector_.set_incoming_receiver(validators_.GetHead()); maybe set_sink and GetHead ...
6 years, 7 months ago (2014-05-14 06:51:49 UTC) #8
yzshen1
Thanks, Darin! https://codereview.chromium.org/273233002/diff/50001/mojo/public/cpp/bindings/lib/router.cc File mojo/public/cpp/bindings/lib/router.cc (right): https://codereview.chromium.org/273233002/diff/50001/mojo/public/cpp/bindings/lib/router.cc#newcode69 mojo/public/cpp/bindings/lib/router.cc:69: validators_(validators.Pass()), On 2014/05/14 06:51:51, darin wrote: > ...
6 years, 7 months ago (2014-05-14 08:14:03 UTC) #9
darin (slow to review)
LGTM https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/message_header_validator.h File mojo/public/cpp/bindings/lib/message_header_validator.h (right): https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/message_header_validator.h#newcode5 mojo/public/cpp/bindings/lib/message_header_validator.h:5: #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_HEADER_VALIDATOR_H_ oops, thanks! https://codereview.chromium.org/273233002/diff/70001/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl File mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl (right): ...
6 years, 7 months ago (2014-05-15 05:47:29 UTC) #10
darin (slow to review)
LGTM https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/filter_chain.h File mojo/public/cpp/bindings/lib/filter_chain.h (right): https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/filter_chain.h#newcode34 mojo/public/cpp/bindings/lib/filter_chain.h:34: FilterChain& Append(MessageFilter* filter); Now I understand why you ...
6 years, 7 months ago (2014-05-15 06:56:02 UTC) #11
yzshen1
Thanks Darin! https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/filter_chain.h File mojo/public/cpp/bindings/lib/filter_chain.h (right): https://codereview.chromium.org/273233002/diff/70001/mojo/public/cpp/bindings/lib/filter_chain.h#newcode34 mojo/public/cpp/bindings/lib/filter_chain.h:34: FilterChain& Append(MessageFilter* filter); On 2014/05/15 06:56:02, darin ...
6 years, 7 months ago (2014-05-15 07:45:30 UTC) #12
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 7 months ago (2014-05-15 07:45:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/273233002/90001
6 years, 7 months ago (2014-05-15 07:46:12 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 08:16:00 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 08:18:43 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16716)
6 years, 7 months ago (2014-05-15 08:18:43 UTC) #17
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 7 months ago (2014-05-15 17:28:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/273233002/110001
6 years, 7 months ago (2014-05-15 17:33:24 UTC) #19
darin (slow to review)
On 2014/05/15 07:45:30, yzshen1 (OOO until may 19) wrote: ... > Yeah, I experimented with ...
6 years, 7 months ago (2014-05-15 21:19:05 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 21:46:40 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 23:48:53 UTC) #22
Message was sent while issue was closed.
Change committed as 270857

Powered by Google App Engine
This is Rietveld 408576698