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

Issue 1460463003: Move mojo::internal::MessageBuilder out of the |internal| namespace. (Closed)

Created:
5 years, 1 month ago by vardhan
Modified:
5 years, 1 month ago
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Move mojo::internal::MessageBuilder out of the |internal| namespace. This can be used to build Message (e.g interface messages) from the bindings. It might be just as easy to build Messages by constructing a |Message| manually and store it in a byte buffer, but MessageBuilder helps construct flags in a safer way (e.g., Messages can't be a response *and* expect a response). R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/3db36ca1b7ad0c8f0338235352e1bd38da31c50f

Patch Set 1 #

Total comments: 9

Patch Set 2 : More comments for MessageBuilder + a unittest. #

Total comments: 7

Patch Set 3 : formatting + style changes (from trung comments) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -36 lines) Patch
M mojo/public/cpp/bindings/lib/message_builder.h View 1 2 3 chunks +33 lines, -9 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_builder.cc View 1 2 3 chunks +25 lines, -17 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/connector_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
A mojo/public/cpp/bindings/tests/message_builder_unittest.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/router_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/tools/message_generator.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
vardhan
PTAL
5 years, 1 month ago (2015-11-17 23:45:28 UTC) #1
viettrungluu
https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc File mojo/public/cpp/bindings/lib/message_builder.cc (right): https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc#newcode32 mojo/public/cpp/bindings/lib/message_builder.cc:32: header->flags = 0; I guess Allocate() (that is, internal::Buffer::Allocate()) ...
5 years, 1 month ago (2015-11-17 23:59:38 UTC) #3
vardhan
PTAL https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc File mojo/public/cpp/bindings/lib/message_builder.cc (right): https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc#newcode32 mojo/public/cpp/bindings/lib/message_builder.cc:32: header->flags = 0; On 2015/11/17 23:59:38, viettrungluu wrote: ...
5 years, 1 month ago (2015-11-18 22:46:40 UTC) #4
viettrungluu
lgtm with comment and style nits https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc File mojo/public/cpp/bindings/lib/message_builder.cc (right): https://codereview.chromium.org/1460463003/diff/1/mojo/public/cpp/bindings/lib/message_builder.cc#newcode11 mojo/public/cpp/bindings/lib/message_builder.cc:11: It's debatable if ...
5 years, 1 month ago (2015-11-18 23:55:59 UTC) #5
darin (slow to review)
Sorry, I'm missing why it is helpful to move these classes out of the internal ...
5 years, 1 month ago (2015-11-19 05:55:27 UTC) #7
darin (slow to review)
Sorry, I'm missing why it is helpful to move these classes out of the internal ...
5 years, 1 month ago (2015-11-19 05:55:29 UTC) #8
viettrungluu
On 2015/11/19 05:55:29, darin (slow to review) wrote: > Sorry, I'm missing why it is ...
5 years, 1 month ago (2015-11-19 16:26:12 UTC) #9
vardhan
5 years, 1 month ago (2015-11-20 06:27:28 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
3db36ca1b7ad0c8f0338235352e1bd38da31c50f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698