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

Unified Diff: mojo/edk/system/channel_endpoint_client.h

Issue 773113006: Fix/reland 505555fa8031fc06d67e9ed43e3021d8d84cb44f (crrev.com/773983002). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/channel_endpoint.cc ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_endpoint_client.h
diff --git a/mojo/edk/system/channel_endpoint_client.h b/mojo/edk/system/channel_endpoint_client.h
index 7a7d5b8044548a5128f610bed99af7acf72974a8..c758e9c5485e4533d158b930548fc42e19084475 100644
--- a/mojo/edk/system/channel_endpoint_client.h
+++ b/mojo/edk/system/channel_endpoint_client.h
@@ -38,8 +38,9 @@ class MOJO_SYSTEM_IMPL_EXPORT ChannelEndpointClient
// called by |Channel| when it receives a message for the |ChannelEndpoint|.
// (|port| is the value passed to |ChannelEndpoint|'s constructor as
// |client_port|.)
- virtual void OnReadMessage(unsigned port,
- scoped_ptr<MessageInTransit> message) = 0;
+ //
+ // This should return true if it accepted (and took ownership of) |message|.
+ virtual bool OnReadMessage(unsigned port, MessageInTransit* message) = 0;
// Called by |ChannelEndpoint| when the |Channel| is relinquishing its pointer
// to the |ChannelEndpoint| (and vice versa). After this is called,
« no previous file with comments | « mojo/edk/system/channel_endpoint.cc ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698