Chromium Code Reviews
DescriptionMojo C++ Bindings: Allow callbacks to own their InterfacePtr
This changes endpoint error handling slightly to enable response
callbacks to own the endpoint which is waiting for the response.
The use case is that sometimes a caller wants to make a single
interface call which receives a response, and there's no good
candidate object to own and keep the InterfacePtr alive for
the extent of the call. If the Ptr isn't kept alive, the response
will never be received.
In such cases, it's natural to want the Ptr to live only as long
as the pending request. See the image_decoder client library for a
concrete example: https://codereview.chromium.org/2475543003
Specifically image_decoder::Decode().
BUG=654986
R=yzshen@chromium.org
Committed: https://crrev.com/fddb451107a7468066fd17996e1920d1ee3289a4
Cr-Commit-Position: refs/heads/master@{#430749}
Patch Set 1 #Patch Set 2 : . #
Dependent Patchsets: Messages
Total messages: 13 (8 generated)
|
|||||||||||||||||||||||||||||||||||||