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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 MessagePipe* GetMessagePipeNoLock() const; | 73 MessagePipe* GetMessagePipeNoLock() const; |
74 // Similarly for the port. | 74 // Similarly for the port. |
75 unsigned GetPortNoLock() const; | 75 unsigned GetPortNoLock() const; |
76 | 76 |
77 // |Dispatcher| protected methods: | 77 // |Dispatcher| protected methods: |
78 void CancelAllAwakablesNoLock() override; | 78 void CancelAllAwakablesNoLock() override; |
79 void CloseImplNoLock() override; | 79 void CloseImplNoLock() override; |
80 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( | 80 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( |
81 MessagePipe* message_pipe, | 81 MessagePipe* message_pipe, |
82 unsigned port) override; | 82 unsigned port) override; |
83 MojoResult WriteMessageImplNoLock( | 83 MojoResult WriteMessageImplNoLock(UserPointer<const void> bytes, |
84 UserPointer<const void> bytes, | 84 uint32_t num_bytes, |
85 uint32_t num_bytes, | 85 std::vector<HandleTransport>* transports, |
86 std::vector<DispatcherTransport>* transports, | 86 MojoWriteMessageFlags flags) override; |
87 MojoWriteMessageFlags flags) override; | |
88 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, | 87 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, |
89 UserPointer<uint32_t> num_bytes, | 88 UserPointer<uint32_t> num_bytes, |
90 DispatcherVector* dispatchers, | 89 DispatcherVector* dispatchers, |
91 uint32_t* num_dispatchers, | 90 uint32_t* num_dispatchers, |
92 MojoReadMessageFlags flags) override; | 91 MojoReadMessageFlags flags) override; |
93 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; | 92 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; |
94 MojoResult AddAwakableImplNoLock(Awakable* awakable, | 93 MojoResult AddAwakableImplNoLock(Awakable* awakable, |
95 MojoHandleSignals signals, | 94 MojoHandleSignals signals, |
96 uint32_t context, | 95 uint32_t context, |
97 HandleSignalsState* signals_state) override; | 96 HandleSignalsState* signals_state) override; |
(...skipping 14 matching lines...) Expand all Loading... |
112 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); | 111 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); |
113 unsigned port_ MOJO_GUARDED_BY(mutex()); | 112 unsigned port_ MOJO_GUARDED_BY(mutex()); |
114 | 113 |
115 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); | 114 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); |
116 }; | 115 }; |
117 | 116 |
118 } // namespace system | 117 } // namespace system |
119 } // namespace mojo | 118 } // namespace mojo |
120 | 119 |
121 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 120 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
OLD | NEW |