| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ |
| 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // operation involves both endpoints. | 60 // operation involves both endpoints. |
| 61 virtual void CancelAllState(); | 61 virtual void CancelAllState(); |
| 62 virtual MojoResult ReadMessage(UserPointer<void> bytes, | 62 virtual MojoResult ReadMessage(UserPointer<void> bytes, |
| 63 UserPointer<uint32_t> num_bytes, | 63 UserPointer<uint32_t> num_bytes, |
| 64 HandleVector* handles, | 64 HandleVector* handles, |
| 65 uint32_t* num_handles, | 65 uint32_t* num_handles, |
| 66 MojoReadMessageFlags flags); | 66 MojoReadMessageFlags flags); |
| 67 virtual HandleSignalsState GetHandleSignalsState() const; | 67 virtual HandleSignalsState GetHandleSignalsState() const; |
| 68 virtual MojoResult AddAwakable(Awakable* awakable, | 68 virtual MojoResult AddAwakable(Awakable* awakable, |
| 69 MojoHandleSignals signals, | 69 MojoHandleSignals signals, |
| 70 uint32_t context, | 70 uint64_t context, |
| 71 HandleSignalsState* signals_state); | 71 HandleSignalsState* signals_state); |
| 72 virtual void RemoveAwakable(Awakable* awakable, | 72 virtual void RemoveAwakable(Awakable* awakable, |
| 73 HandleSignalsState* signals_state); | 73 HandleSignalsState* signals_state); |
| 74 | 74 |
| 75 // Implementations must override these if they represent a proxy endpoint. An | 75 // Implementations must override these if they represent a proxy endpoint. An |
| 76 // implementation for a local endpoint needs not override these methods, since | 76 // implementation for a local endpoint needs not override these methods, since |
| 77 // they should never be called. | 77 // they should never be called. |
| 78 virtual void Attach(ChannelEndpoint* channel_endpoint); | 78 virtual void Attach(ChannelEndpoint* channel_endpoint); |
| 79 | 79 |
| 80 protected: | 80 protected: |
| 81 MessagePipeEndpoint() {} | 81 MessagePipeEndpoint() {} |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint); | 84 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace system | 87 } // namespace system |
| 88 } // namespace mojo | 88 } // namespace mojo |
| 89 | 89 |
| 90 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ | 90 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ |
| OLD | NEW |