| 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_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ |
| 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 MojoResult ReadMessage(unsigned port, | 95 MojoResult ReadMessage(unsigned port, |
| 96 UserPointer<void> bytes, | 96 UserPointer<void> bytes, |
| 97 UserPointer<uint32_t> num_bytes, | 97 UserPointer<uint32_t> num_bytes, |
| 98 HandleVector* handles, | 98 HandleVector* handles, |
| 99 uint32_t* num_handles, | 99 uint32_t* num_handles, |
| 100 MojoReadMessageFlags flags); | 100 MojoReadMessageFlags flags); |
| 101 HandleSignalsState GetHandleSignalsState(unsigned port) const; | 101 HandleSignalsState GetHandleSignalsState(unsigned port) const; |
| 102 MojoResult AddAwakable(unsigned port, | 102 MojoResult AddAwakable(unsigned port, |
| 103 Awakable* awakable, | 103 Awakable* awakable, |
| 104 uint64_t context, | 104 uint64_t context, |
| 105 bool force, | 105 bool persistent, |
| 106 MojoHandleSignals signals, | 106 MojoHandleSignals signals, |
| 107 HandleSignalsState* signals_state); | 107 HandleSignalsState* signals_state); |
| 108 void RemoveAwakable(unsigned port, | 108 void RemoveAwakable(unsigned port, |
| 109 bool match_context, | 109 bool match_context, |
| 110 Awakable* awakable, | 110 Awakable* awakable, |
| 111 uint64_t context, | 111 uint64_t context, |
| 112 HandleSignalsState* signals_state); | 112 HandleSignalsState* signals_state); |
| 113 void StartSerialize(unsigned port, | 113 void StartSerialize(unsigned port, |
| 114 Channel* channel, | 114 Channel* channel, |
| 115 size_t* max_size, | 115 size_t* max_size, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 mutable util::Mutex mutex_; | 152 mutable util::Mutex mutex_; |
| 153 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); | 153 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); |
| 154 | 154 |
| 155 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); | 155 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace system | 158 } // namespace system |
| 159 } // namespace mojo | 159 } // namespace mojo |
| 160 | 160 |
| 161 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ | 161 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ |
| OLD | NEW |