| 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_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 6 #define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "mojo/edk/system/dispatcher.h" | 10 #include "mojo/system/dispatcher.h" |
| 11 #include "mojo/edk/system/memory.h" | 11 #include "mojo/system/memory.h" |
| 12 #include "mojo/edk/system/system_impl_export.h" | 12 #include "mojo/system/system_impl_export.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace system { | 15 namespace system { |
| 16 | 16 |
| 17 class ChannelEndpoint; | 17 class ChannelEndpoint; |
| 18 class MessagePipe; | 18 class MessagePipe; |
| 19 class MessagePipeDispatcherTransport; | 19 class MessagePipeDispatcherTransport; |
| 20 | 20 |
| 21 // This is the |Dispatcher| implementation for message pipes (created by the | 21 // This is the |Dispatcher| implementation for message pipes (created by the |
| 22 // Mojo primitive |MojoCreateMessagePipe()|). This class is thread-safe. | 22 // Mojo primitive |MojoCreateMessagePipe()|). This class is thread-safe. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 MessagePipeDispatcher* message_pipe_dispatcher() { | 125 MessagePipeDispatcher* message_pipe_dispatcher() { |
| 126 return static_cast<MessagePipeDispatcher*>(dispatcher()); | 126 return static_cast<MessagePipeDispatcher*>(dispatcher()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 // Copy and assign allowed. | 129 // Copy and assign allowed. |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace system | 132 } // namespace system |
| 133 } // namespace mojo | 133 } // namespace mojo |
| 134 | 134 |
| 135 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 135 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| OLD | NEW |