Chromium Code Reviews| Index: mojo/edk/system/message_pipe_endpoint.h |
| diff --git a/mojo/edk/system/message_pipe_endpoint.h b/mojo/edk/system/message_pipe_endpoint.h |
| index 7bc0a0d9f4524895fc63358d8495da3473b60829..0b5f12eb7ff5480f88c0ef3f24f0196853d39b60 100644 |
| --- a/mojo/edk/system/message_pipe_endpoint.h |
| +++ b/mojo/edk/system/message_pipe_endpoint.h |
| @@ -23,7 +23,7 @@ namespace mojo { |
| namespace system { |
| class ChannelEndpoint; |
| -class Waiter; |
| +class Awakable; |
|
viettrungluu
2014/12/03 22:31:27
reorder
Hajime Morrita
2014/12/03 22:47:11
Done.
|
| // This is an interface to one of the ends of a message pipe, and is used by |
| // |MessagePipe|. Its most important role is to provide a sink for messages |
| @@ -58,18 +58,19 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeEndpoint { |
| // These methods implement the methods of the same name in |MessagePipe|, |
| // though |MessagePipe|'s implementation may have to do a little more if the |
| // operation involves both endpoints. |
| - virtual void CancelAllWaiters(); |
| + virtual void CancelAllAwakables(); |
| virtual MojoResult ReadMessage(UserPointer<void> bytes, |
| UserPointer<uint32_t> num_bytes, |
| DispatcherVector* dispatchers, |
| uint32_t* num_dispatchers, |
| MojoReadMessageFlags flags); |
| virtual HandleSignalsState GetHandleSignalsState() const; |
| - virtual MojoResult AddWaiter(Waiter* waiter, |
| - MojoHandleSignals signals, |
| - uint32_t context, |
| - HandleSignalsState* signals_state); |
| - virtual void RemoveWaiter(Waiter* waiter, HandleSignalsState* signals_state); |
| + virtual MojoResult AddAwakable(Awakable* awakable, |
| + MojoHandleSignals signals, |
| + uint32_t context, |
| + HandleSignalsState* signals_state); |
| + virtual void RemoveAwakable(Awakable* awakable, |
| + HandleSignalsState* signals_state); |
| // Implementations must override these if they represent a proxy endpoint. An |
| // implementation for a local endpoint needs not override these methods, since |