Index: third_party/mojo/src/mojo/edk/system/channel_endpoint_client.h |
diff --git a/third_party/mojo/src/mojo/edk/system/channel_endpoint_client.h b/third_party/mojo/src/mojo/edk/system/channel_endpoint_client.h |
index c758e9c5485e4533d158b930548fc42e19084475..3e722b6a8d9ccea93f4b3a6e51a753d955d9b3f0 100644 |
--- a/third_party/mojo/src/mojo/edk/system/channel_endpoint_client.h |
+++ b/third_party/mojo/src/mojo/edk/system/channel_endpoint_client.h |
@@ -8,13 +8,12 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "mojo/edk/system/message_in_transit.h" |
#include "mojo/edk/system/system_impl_export.h" |
namespace mojo { |
namespace system { |
-class MessageInTransit; |
- |
// Interface for receivers of messages from |ChannelEndpoint| (hence from |
// |Channel|). |port| is simply the value passed to |ChannelEndpoint| on |
// construction, and provides a lightweight way for an object to be the client |
@@ -40,7 +39,8 @@ class MOJO_SYSTEM_IMPL_EXPORT ChannelEndpointClient |
// |client_port|.) |
// |
// This should return true if it accepted (and took ownership of) |message|. |
- virtual bool OnReadMessage(unsigned port, MessageInTransit* message) = 0; |
+ virtual bool OnReadMessage(unsigned port, |
+ MessageInTransit::ReadContext& message) = 0; |
// Called by |ChannelEndpoint| when the |Channel| is relinquishing its pointer |
// to the |ChannelEndpoint| (and vice versa). After this is called, |