| 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 #include "mojo/edk/system/message_pipe_dispatcher.h" | 5 #include "mojo/edk/system/message_pipe_dispatcher.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "mojo/edk/system/configuration.h" | 10 #include "mojo/edk/system/configuration.h" |
| 11 #include "mojo/edk/system/local_message_pipe_endpoint.h" | 11 #include "mojo/edk/system/local_message_pipe_endpoint.h" |
| 12 #include "mojo/edk/system/memory.h" | 12 #include "mojo/edk/system/memory.h" |
| 13 #include "mojo/edk/system/message_pipe.h" | 13 #include "mojo/edk/system/message_pipe.h" |
| 14 #include "mojo/edk/system/options_validation.h" | 14 #include "mojo/edk/system/options_validation.h" |
| 15 #include "mojo/edk/system/proxy_message_pipe_endpoint.h" | 15 #include "mojo/edk/system/proxy_message_pipe_endpoint.h" |
| 16 | 16 |
| 17 using mojo::util::RefPtr; |
| 18 |
| 17 namespace mojo { | 19 namespace mojo { |
| 18 namespace system { | 20 namespace system { |
| 19 | 21 |
| 20 const unsigned kInvalidPort = static_cast<unsigned>(-1); | 22 const unsigned kInvalidPort = static_cast<unsigned>(-1); |
| 21 | 23 |
| 22 // MessagePipeDispatcher ------------------------------------------------------- | 24 // MessagePipeDispatcher ------------------------------------------------------- |
| 23 | 25 |
| 24 // static | 26 // static |
| 25 const MojoCreateMessagePipeOptions | 27 const MojoCreateMessagePipeOptions |
| 26 MessagePipeDispatcher::kDefaultCreateOptions = { | 28 MessagePipeDispatcher::kDefaultCreateOptions = { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 218 |
| 217 MessagePipeDispatcherTransport::MessagePipeDispatcherTransport( | 219 MessagePipeDispatcherTransport::MessagePipeDispatcherTransport( |
| 218 DispatcherTransport transport) | 220 DispatcherTransport transport) |
| 219 : DispatcherTransport(transport) { | 221 : DispatcherTransport(transport) { |
| 220 DCHECK_EQ(message_pipe_dispatcher()->GetType(), | 222 DCHECK_EQ(message_pipe_dispatcher()->GetType(), |
| 221 Dispatcher::Type::MESSAGE_PIPE); | 223 Dispatcher::Type::MESSAGE_PIPE); |
| 222 } | 224 } |
| 223 | 225 |
| 224 } // namespace system | 226 } // namespace system |
| 225 } // namespace mojo | 227 } // namespace mojo |
| OLD | NEW |