| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 MojoWriteMessageFlags flags); | 94 MojoWriteMessageFlags flags); |
| 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, |
| 105 bool force, |
| 104 MojoHandleSignals signals, | 106 MojoHandleSignals signals, |
| 105 bool force, | |
| 106 uint64_t context, | |
| 107 HandleSignalsState* signals_state); | 107 HandleSignalsState* signals_state); |
| 108 void RemoveAwakable(unsigned port, | 108 void RemoveAwakable(unsigned port, |
| 109 bool match_context, |
| 109 Awakable* awakable, | 110 Awakable* awakable, |
| 111 uint64_t context, |
| 110 HandleSignalsState* signals_state); | 112 HandleSignalsState* signals_state); |
| 111 void RemoveAwakableWithContext(unsigned port, | |
| 112 Awakable* awakable, | |
| 113 uint64_t context, | |
| 114 HandleSignalsState* signals_state); | |
| 115 void StartSerialize(unsigned port, | 113 void StartSerialize(unsigned port, |
| 116 Channel* channel, | 114 Channel* channel, |
| 117 size_t* max_size, | 115 size_t* max_size, |
| 118 size_t* max_platform_handles); | 116 size_t* max_platform_handles); |
| 119 bool EndSerialize( | 117 bool EndSerialize( |
| 120 unsigned port, | 118 unsigned port, |
| 121 Channel* channel, | 119 Channel* channel, |
| 122 void* destination, | 120 void* destination, |
| 123 size_t* actual_size, | 121 size_t* actual_size, |
| 124 std::vector<platform::ScopedPlatformHandle>* platform_handles); | 122 std::vector<platform::ScopedPlatformHandle>* platform_handles); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 154 mutable util::Mutex mutex_; | 152 mutable util::Mutex mutex_; |
| 155 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); | 153 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); |
| 156 | 154 |
| 157 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); | 155 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); |
| 158 }; | 156 }; |
| 159 | 157 |
| 160 } // namespace system | 158 } // namespace system |
| 161 } // namespace mojo | 159 } // namespace mojo |
| 162 | 160 |
| 163 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ | 161 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ |
| OLD | NEW |