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

Issue 1660403003: Mojo C++ bindings: Rename InterfaceInfoPtr -> InterfaceHandle (Closed)

Created:
4 years, 10 months ago by vardhan
Modified:
4 years, 10 months ago
Reviewers:
jamesr, viettrungluu
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_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

Patch Set 1 #

Patch Set 2 : using {{InterfaceName}}Handle = InterfaceHandle<{{InterfaceName}}> #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -118 lines) Patch
M examples/indirect_service/indirect_service_demo.cc View 1 chunk +1 line, -1 line 0 comments Download
M examples/ui/noodles/noodles_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M examples/ui/noodles/noodles_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/dart/embedder/mojo_dart_state.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/public/cpp/application/application_connection.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/application/application_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/application/connect.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/application/lib/application_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/binding.h View 2 chunks +2 lines, -2 lines 0 comments Download
A + mojo/public/cpp/bindings/interface_handle.h View 2 chunks +8 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/interface_ptr.h View 5 chunks +5 lines, -5 lines 0 comments Download
D mojo/public/cpp/bindings/interface_ptr_info.h View 1 chunk +0 lines, -58 lines 0 comments Download
M mojo/public/cpp/bindings/interface_request.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/bindings_serialization.h View 3 chunks +3 lines, -3 lines 1 comment Download
M mojo/public/cpp/bindings/lib/interface_ptr_internal.h View 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/validation_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/log/cpp/lib/log_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/gfx/compositor/backend/gpu_output.h View 1 chunk +1 line, -1 line 0 comments Download
M services/gfx/compositor/backend/gpu_output.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/js/echo_apptest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/nacl/nonsfi/content_handler_main_pexe.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M shell/application_manager/application_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M shell/application_manager/application_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M shell/child_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M shell/shell_test_base.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
vardhan
PTAL. Also okay with suggestions for using a different name than InterfaceHandle<>, InterfaceDescriptor<> being a ...
4 years, 10 months ago (2016-02-03 22:13:59 UTC) #1
jamesr
I think the thread was converging on Descriptor instead. I'm not super opinionated on Handle ...
4 years, 10 months ago (2016-02-03 22:42:57 UTC) #2
vardhan
Looks like '<Interface>Descriptor' as a typedef is already causing some name collisions: We have an ...
4 years, 10 months ago (2016-02-03 22:57:55 UTC) #3
vardhan
Committed patchset #2 (id:20001) manually as dac048a330174d4bb4346b645cbb8fe66d24e323 (presubmit successful).
4 years, 10 months ago (2016-02-04 01:17:00 UTC) #5
viettrungluu
4 years, 10 months ago (2016-02-05 17:41:55 UTC) #6
Message was sent while issue was closed.
On 2016/02/03 22:42:57, jamesr wrote:
> I think the thread was converging on Descriptor instead.  I'm not super
> opinionated on Handle vs Descriptor but we should make sure everyone likes the
> name we pick.

I'm OK with Handle, I guess. We should probably make InterfaceHandle look/act
more like things that are actually handles (in particular, more like
ScopedHandle, etc.).

> 
> lgtm on the patch itself % the actual name.
> 
>
https://codereview.chromium.org/1660403003/diff/20001/mojo/public/cpp/binding...
> File mojo/public/cpp/bindings/lib/bindings_serialization.h (right):
> 
>
https://codereview.chromium.org/1660403003/diff/20001/mojo/public/cpp/binding...
> mojo/public/cpp/bindings/lib/bindings_serialization.h:82: InterfaceHandle<T>
> info = input.PassInterface();
> it's weird that PassInterface() returns a InterfaceHandle.  It's also weird
that
> it used to return InterfacePtrInfo, too.

Probably we should rename it "PassInterfaceHandle" (or maybe just
"PassHandle"?).

Powered by Google App Engine
This is Rietveld 408576698