Commit 572daa86 authored by Alexander Timin's avatar Alexander Timin Committed by Commit Bot

[mojo] Remove a reference to mojo::Binding in the documentation

R=rockot@chromium.org

Change-Id: Iba556a1d642d1dc4fb78e6960af104861396f54e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2019364
Auto-Submit: Alexander Timin <altimin@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#734996}
parent 606d88a5
...@@ -480,14 +480,15 @@ message pipe handles as mojom interfaces. For example: ...@@ -480,14 +480,15 @@ message pipe handles as mojom interfaces. For example:
// Process A // Process A
mojo::OutgoingInvitation invitation; mojo::OutgoingInvitation invitation;
auto pipe = invitation->AttachMessagePipe("x"); auto pipe = invitation->AttachMessagePipe("x");
mojo::Binding<foo::mojom::Bar> binding( mojo::Receiver<foo::mojom::Bar> receiver(
&bar_impl, &bar_impl,
foo::mojom::BarRequest(std::move(pipe))); mojo::PendingReceiver<foo::mojom::Bar>(std::move(pipe)));
// Process B // Process B
auto invitation = mojo::IncomingInvitation::Accept(...); auto invitation = mojo::IncomingInvitation::Accept(...);
auto pipe = invitation->ExtractMessagePipe("x"); auto pipe = invitation->ExtractMessagePipe("x");
mojo::Remote<foo::mojom::Bar> bar(mojo::PendingRemote<foo::mojom::Bar>(std::move(pipe), 0)); mojo::Remote<foo::mojom::Bar> bar(
mojo::PendingRemote<foo::mojom::Bar>(std::move(pipe), 0));
// Will asynchronously invoke bar_impl.DoSomething() in process A. // Will asynchronously invoke bar_impl.DoSomething() in process A.
bar->DoSomething(); bar->DoSomething();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment