|
Mojo: Introduce InterfaceRequest ctor that takes in InterfacePtr*
In https://groups.google.com/a/chromium.org/forum/#!topic/chromium-mojo/PUDEadGMijM,
we decided to introduce an InterfaceRequest constructor that takes in an
InterfacePtr* and binds to it on a new pipe (i.e., the same functionality
as mojo::MakeRequest(InterfacePtr*)). The primary use case is to replace
lines like:
FooRequest request = mojo::MakeRequest(&foo_ptr);
with:
FooRequest request(&foo_ptr);
This CL does the following:
(1) Introduces the new constructor.
(2) Changes mojo::MakeRequest(InterfacePtr*) to be implemented via this
constructor.
(3) Performs the above-mentioned conversion across the codebase.
Note that it is not possible to use "auto" with this constructor; replacing
FooRequest with auto in the above construction will cause the compiler to
infer the type to be FooPtr*.
A followup will make a similar change to AssociatedInterfaceRequest.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
TBR=darin
Committed: https://crrev.com/c17a15dfa5b357271cd283523a868688415ef919
Cr-Commit-Position: refs/heads/master@{#440084}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+58 lines, -63 lines) |
Patch |
 |
M |
chrome/browser/importer/external_process_importer_client.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/task_manager/providers/child_process_task.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/gpu/gpu_arc_video_service.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/exo/surface.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/leveldb/leveldb_mojo_proxy.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/password_manager/content/browser/content_password_manager_driver.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_context.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_manager/service_manager_context.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/service_manager/child_connection.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/utility_process_mojo_client.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/device_sensors/device_sensor_event_pump.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mash/task_viewer/task_viewer.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
mash/webtest/webtest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/remoting/fake_remoting_controller.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/remoting/remoting_cdm_factory.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/interface_request.h
|
View
|
1
2
|
3 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/pickle_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
services/catalog/catalog.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/navigation/view_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/lib/connector_impl.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/service_manager.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/gpu/gpu_main.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/frame_generator.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_utils.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_manager_state_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 24 (15 generated)
|