| 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 MojoHandleSignals signals, | 104 MojoHandleSignals signals, |
| 105 bool force, |
| 105 uint64_t context, | 106 uint64_t context, |
| 106 HandleSignalsState* signals_state); | 107 HandleSignalsState* signals_state); |
| 107 void RemoveAwakable(unsigned port, | 108 void RemoveAwakable(unsigned port, |
| 108 Awakable* awakable, | 109 Awakable* awakable, |
| 109 HandleSignalsState* signals_state); | 110 HandleSignalsState* signals_state); |
| 110 void StartSerialize(unsigned port, | 111 void StartSerialize(unsigned port, |
| 111 Channel* channel, | 112 Channel* channel, |
| 112 size_t* max_size, | 113 size_t* max_size, |
| 113 size_t* max_platform_handles); | 114 size_t* max_platform_handles); |
| 114 bool EndSerialize( | 115 bool EndSerialize( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 mutable util::Mutex mutex_; | 150 mutable util::Mutex mutex_; |
| 150 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); | 151 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); |
| 151 | 152 |
| 152 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); | 153 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace system | 156 } // namespace system |
| 156 } // namespace mojo | 157 } // namespace mojo |
| 157 | 158 |
| 158 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ | 159 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ |
| OLD | NEW |