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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.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/message_pipe_endpoint.h
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.h b/third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.h
index 0b5f12eb7ff5480f88c0ef3f24f0196853d39b60..d6fd343c5d6852e6ab603afe38a3c60aa66bdc48 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.h
+++ b/third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.h
@@ -50,6 +50,8 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeEndpoint {
virtual void EnqueueMessage(scoped_ptr<MessageInTransit> message) = 0;
virtual void Close() = 0;
+ virtual void OnReadMessage(MessageInTransit::ReadContext& reading_message);
+
// Implementations must override these if they represent a local endpoint,
// i.e., one for which there's a |MessagePipeDispatcher| (and thus a handle).
// An implementation for a proxy endpoint (for which there's no dispatcher)
@@ -71,6 +73,8 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeEndpoint {
HandleSignalsState* signals_state);
virtual void RemoveAwakable(Awakable* awakable,
HandleSignalsState* signals_state);
+ virtual MojoResult SetAsyncMessageCallback(
+ const AsyncMessageCallback& callback);
// Implementations must override these if they represent a proxy endpoint. An
// implementation for a local endpoint needs not override these methods, since

Powered by Google App Engine
This is Rietveld 408576698