| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void RemoveAwakableImplNoLock(Awakable* awakable, | 99 void RemoveAwakableImplNoLock(Awakable* awakable, |
| 100 HandleSignalsState* signals_state) override; | 100 HandleSignalsState* signals_state) override; |
| 101 void StartSerializeImplNoLock(Channel* channel, | 101 void StartSerializeImplNoLock(Channel* channel, |
| 102 size_t* max_size, | 102 size_t* max_size, |
| 103 size_t* max_platform_handles) override | 103 size_t* max_platform_handles) override |
| 104 MOJO_NOT_THREAD_SAFE; | 104 MOJO_NOT_THREAD_SAFE; |
| 105 bool EndSerializeAndCloseImplNoLock( | 105 bool EndSerializeAndCloseImplNoLock( |
| 106 Channel* channel, | 106 Channel* channel, |
| 107 void* destination, | 107 void* destination, |
| 108 size_t* actual_size, | 108 size_t* actual_size, |
| 109 embedder::PlatformHandleVector* platform_handles) override | 109 std::vector<embedder::ScopedPlatformHandle>* platform_handles) override |
| 110 MOJO_NOT_THREAD_SAFE; | 110 MOJO_NOT_THREAD_SAFE; |
| 111 | 111 |
| 112 // This will be null if closed. | 112 // This will be null if closed. |
| 113 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); | 113 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); |
| 114 unsigned port_ MOJO_GUARDED_BY(mutex()); | 114 unsigned port_ MOJO_GUARDED_BY(mutex()); |
| 115 | 115 |
| 116 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); | 116 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 class MessagePipeDispatcherTransport : public DispatcherTransport { | 119 class MessagePipeDispatcherTransport : public DispatcherTransport { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 130 return static_cast<MessagePipeDispatcher*>(dispatcher()); | 130 return static_cast<MessagePipeDispatcher*>(dispatcher()); |
| 131 } | 131 } |
| 132 | 132 |
| 133 // Copy and assign allowed. | 133 // Copy and assign allowed. |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace system | 136 } // namespace system |
| 137 } // namespace mojo | 137 } // namespace mojo |
| 138 | 138 |
| 139 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 139 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| OLD | NEW |