| 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 MojoHandleSignals signals, | 100 MojoHandleSignals signals, |
| 101 uint32_t context, | 101 uint64_t context, |
| 102 HandleSignalsState* signals_state) override; | 102 HandleSignalsState* signals_state) override; |
| 103 void RemoveAwakableImplNoLock(Awakable* awakable, | 103 void RemoveAwakableImplNoLock(Awakable* awakable, |
| 104 HandleSignalsState* signals_state) override; | 104 HandleSignalsState* signals_state) override; |
| 105 void StartSerializeImplNoLock(Channel* channel, | 105 void StartSerializeImplNoLock(Channel* channel, |
| 106 size_t* max_size, | 106 size_t* max_size, |
| 107 size_t* max_platform_handles) override | 107 size_t* max_platform_handles) override |
| 108 MOJO_NOT_THREAD_SAFE; | 108 MOJO_NOT_THREAD_SAFE; |
| 109 bool EndSerializeAndCloseImplNoLock( | 109 bool EndSerializeAndCloseImplNoLock( |
| 110 Channel* channel, | 110 Channel* channel, |
| 111 void* destination, | 111 void* destination, |
| 112 size_t* actual_size, | 112 size_t* actual_size, |
| 113 std::vector<platform::ScopedPlatformHandle>* platform_handles) override | 113 std::vector<platform::ScopedPlatformHandle>* platform_handles) override |
| 114 MOJO_NOT_THREAD_SAFE; | 114 MOJO_NOT_THREAD_SAFE; |
| 115 | 115 |
| 116 // This will be null if closed. | 116 // This will be null if closed. |
| 117 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); | 117 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); |
| 118 unsigned port_ MOJO_GUARDED_BY(mutex()); | 118 unsigned port_ MOJO_GUARDED_BY(mutex()); |
| 119 | 119 |
| 120 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); | 120 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace system | 123 } // namespace system |
| 124 } // namespace mojo | 124 } // namespace mojo |
| 125 | 125 |
| 126 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 126 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| OLD | NEW |