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

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

Issue 929433005: WIP: A couple of more ChannelMojo speedup ideas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build and test fix Created 5 years, 10 months 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
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,
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/channel_endpoint.cc ('k') | third_party/mojo/src/mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698