| Index: mojo/edk/system/dispatcher.h
|
| diff --git a/mojo/edk/system/dispatcher.h b/mojo/edk/system/dispatcher.h
|
| index 5f6304f845dcc6443111b53bd694b0331319ac0a..9dca67fa45f800d45231cb7a3c1e1718c0261c5e 100644
|
| --- a/mojo/edk/system/dispatcher.h
|
| +++ b/mojo/edk/system/dispatcher.h
|
| @@ -31,6 +31,7 @@ namespace edk {
|
|
|
| class Awakable;
|
| class Dispatcher;
|
| +class MessageForTransit;
|
|
|
| using DispatcherVector = std::vector<scoped_refptr<Dispatcher>>;
|
|
|
| @@ -76,17 +77,15 @@ class MOJO_SYSTEM_IMPL_EXPORT Dispatcher
|
|
|
| ///////////// Message pipe API /////////////
|
|
|
| - virtual MojoResult WriteMessage(const void* bytes,
|
| - uint32_t num_bytes,
|
| - const DispatcherInTransit* dispatchers,
|
| - uint32_t num_dispatchers,
|
| + virtual MojoResult WriteMessage(std::unique_ptr<MessageForTransit> message,
|
| MojoWriteMessageFlags flags);
|
|
|
| - virtual MojoResult ReadMessage(void* bytes,
|
| + virtual MojoResult ReadMessage(std::unique_ptr<MessageForTransit>* message,
|
| uint32_t* num_bytes,
|
| MojoHandle* handles,
|
| uint32_t* num_handles,
|
| - MojoReadMessageFlags flags);
|
| + MojoReadMessageFlags flags,
|
| + bool read_any_size);
|
|
|
| ///////////// Shared buffer API /////////////
|
|
|
|
|