| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool force, | 70 bool force, |
| 71 uint64_t context, | 71 uint64_t context, |
| 72 HandleSignalsState* signals_state); | 72 HandleSignalsState* signals_state); |
| 73 virtual void RemoveAwakable(Awakable* awakable, | 73 virtual void RemoveAwakable(Awakable* awakable, |
| 74 HandleSignalsState* signals_state); | 74 HandleSignalsState* signals_state); |
| 75 virtual void RemoveAwakableWithContext(Awakable* awakable, |
| 76 uint64_t context, |
| 77 HandleSignalsState* signals_state); |
| 75 | 78 |
| 76 // Implementations must override these if they represent a proxy endpoint. An | 79 // Implementations must override these if they represent a proxy endpoint. An |
| 77 // implementation for a local endpoint needs not override these methods, since | 80 // implementation for a local endpoint needs not override these methods, since |
| 78 // they should never be called. | 81 // they should never be called. |
| 79 virtual void Attach(ChannelEndpoint* channel_endpoint); | 82 virtual void Attach(ChannelEndpoint* channel_endpoint); |
| 80 | 83 |
| 81 protected: | 84 protected: |
| 82 MessagePipeEndpoint() {} | 85 MessagePipeEndpoint() {} |
| 83 | 86 |
| 84 private: | 87 private: |
| 85 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint); | 88 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint); |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace system | 91 } // namespace system |
| 89 } // namespace mojo | 92 } // namespace mojo |
| 90 | 93 |
| 91 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ | 94 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ |
| OLD | NEW |