| 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_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "mojo/edk/system/dispatcher.h" | 8 #include "mojo/edk/system/dispatcher.h" |
| 9 #include "mojo/edk/system/memory.h" | 9 #include "mojo/edk/system/memory.h" |
| 10 #include "mojo/edk/util/ref_ptr.h" | 10 #include "mojo/edk/util/ref_ptr.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 std::vector<HandleTransport>* transports, | 91 std::vector<HandleTransport>* transports, |
| 92 MojoWriteMessageFlags flags) override; | 92 MojoWriteMessageFlags flags) override; |
| 93 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, | 93 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, |
| 94 UserPointer<uint32_t> num_bytes, | 94 UserPointer<uint32_t> num_bytes, |
| 95 HandleVector* handles, | 95 HandleVector* handles, |
| 96 uint32_t* num_handles, | 96 uint32_t* num_handles, |
| 97 MojoReadMessageFlags flags) override; | 97 MojoReadMessageFlags flags) override; |
| 98 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; | 98 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; |
| 99 MojoResult AddAwakableImplNoLock(Awakable* awakable, | 99 MojoResult AddAwakableImplNoLock(Awakable* awakable, |
| 100 uint64_t context, | 100 uint64_t context, |
| 101 bool force, | 101 bool persistent, |
| 102 MojoHandleSignals signals, | 102 MojoHandleSignals signals, |
| 103 HandleSignalsState* signals_state) override; | 103 HandleSignalsState* signals_state) override; |
| 104 void RemoveAwakableImplNoLock(bool match_context, | 104 void RemoveAwakableImplNoLock(bool match_context, |
| 105 Awakable* awakable, | 105 Awakable* awakable, |
| 106 uint64_t context, | 106 uint64_t context, |
| 107 HandleSignalsState* signals_state) override; | 107 HandleSignalsState* signals_state) override; |
| 108 void StartSerializeImplNoLock(Channel* channel, | 108 void StartSerializeImplNoLock(Channel* channel, |
| 109 size_t* max_size, | 109 size_t* max_size, |
| 110 size_t* max_platform_handles) override | 110 size_t* max_platform_handles) override |
| 111 MOJO_NOT_THREAD_SAFE; | 111 MOJO_NOT_THREAD_SAFE; |
| 112 bool EndSerializeAndCloseImplNoLock( | 112 bool EndSerializeAndCloseImplNoLock( |
| 113 Channel* channel, | 113 Channel* channel, |
| 114 void* destination, | 114 void* destination, |
| 115 size_t* actual_size, | 115 size_t* actual_size, |
| 116 std::vector<platform::ScopedPlatformHandle>* platform_handles) override | 116 std::vector<platform::ScopedPlatformHandle>* platform_handles) override |
| 117 MOJO_NOT_THREAD_SAFE; | 117 MOJO_NOT_THREAD_SAFE; |
| 118 | 118 |
| 119 // This will be null if closed. | 119 // This will be null if closed. |
| 120 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); | 120 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); |
| 121 unsigned port_ MOJO_GUARDED_BY(mutex()); | 121 unsigned port_ MOJO_GUARDED_BY(mutex()); |
| 122 | 122 |
| 123 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); | 123 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace system | 126 } // namespace system |
| 127 } // namespace mojo | 127 } // namespace mojo |
| 128 | 128 |
| 129 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 129 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| OLD | NEW |