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_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 5 #ifndef MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
6 #define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 6 #define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 MessagePipe* GetMessagePipeNoLock() const; | 72 MessagePipe* GetMessagePipeNoLock() const; |
73 // Similarly for the port. | 73 // Similarly for the port. |
74 unsigned GetPortNoLock() const; | 74 unsigned GetPortNoLock() const; |
75 | 75 |
76 // |Dispatcher| protected methods: | 76 // |Dispatcher| protected methods: |
77 virtual void CancelAllWaitersNoLock() OVERRIDE; | 77 virtual void CancelAllWaitersNoLock() OVERRIDE; |
78 virtual void CloseImplNoLock() OVERRIDE; | 78 virtual void CloseImplNoLock() OVERRIDE; |
79 virtual scoped_refptr<Dispatcher> | 79 virtual scoped_refptr<Dispatcher> |
80 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; | 80 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; |
81 virtual MojoResult WriteMessageImplNoLock( | 81 virtual MojoResult WriteMessageImplNoLock( |
82 const void* bytes, | 82 UserPointer<const void> bytes, |
83 uint32_t num_bytes, | 83 uint32_t num_bytes, |
84 std::vector<DispatcherTransport>* transports, | 84 std::vector<DispatcherTransport>* transports, |
85 MojoWriteMessageFlags flags) OVERRIDE; | 85 MojoWriteMessageFlags flags) OVERRIDE; |
86 virtual MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, | 86 virtual MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, |
87 UserPointer<uint32_t> num_bytes, | 87 UserPointer<uint32_t> num_bytes, |
88 DispatcherVector* dispatchers, | 88 DispatcherVector* dispatchers, |
89 uint32_t* num_dispatchers, | 89 uint32_t* num_dispatchers, |
90 MojoReadMessageFlags flags) OVERRIDE; | 90 MojoReadMessageFlags flags) OVERRIDE; |
91 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, | 91 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, |
92 MojoHandleSignals signals, | 92 MojoHandleSignals signals, |
(...skipping 29 matching lines...) Expand all Loading... |
122 return static_cast<MessagePipeDispatcher*>(dispatcher()); | 122 return static_cast<MessagePipeDispatcher*>(dispatcher()); |
123 } | 123 } |
124 | 124 |
125 // Copy and assign allowed. | 125 // Copy and assign allowed. |
126 }; | 126 }; |
127 | 127 |
128 } // namespace system | 128 } // namespace system |
129 } // namespace mojo | 129 } // namespace mojo |
130 | 130 |
131 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 131 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
OLD | NEW |