| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ipc_support.h" | 5 #include "mojo/edk/system/ipc_support.h" |
| 6 | 6 |
| 7 #include <type_traits> | 7 #include <type_traits> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "mojo/edk/embedder/master_process_delegate.h" | 11 #include "mojo/edk/embedder/master_process_delegate.h" |
| 12 #include "mojo/edk/embedder/slave_process_delegate.h" | 12 #include "mojo/edk/embedder/slave_process_delegate.h" |
| 13 #include "mojo/edk/system/channel_manager.h" | 13 #include "mojo/edk/system/channel_manager.h" |
| 14 #include "mojo/edk/system/master_connection_manager.h" | 14 #include "mojo/edk/system/master_connection_manager.h" |
| 15 #include "mojo/edk/system/message_pipe_dispatcher.h" | 15 #include "mojo/edk/system/message_pipe_dispatcher.h" |
| 16 #include "mojo/edk/system/slave_connection_manager.h" | 16 #include "mojo/edk/system/slave_connection_manager.h" |
| 17 | 17 |
| 18 using mojo::embedder::ScopedPlatformHandle; | 18 using mojo::platform::ScopedPlatformHandle; |
| 19 using mojo::platform::TaskRunner; | 19 using mojo::platform::TaskRunner; |
| 20 using mojo::util::RefPtr; | 20 using mojo::util::RefPtr; |
| 21 | 21 |
| 22 namespace mojo { | 22 namespace mojo { |
| 23 namespace system { | 23 namespace system { |
| 24 | 24 |
| 25 IPCSupport::IPCSupport(embedder::PlatformSupport* platform_support, | 25 IPCSupport::IPCSupport(embedder::PlatformSupport* platform_support, |
| 26 embedder::ProcessType process_type, | 26 embedder::ProcessType process_type, |
| 27 RefPtr<TaskRunner>&& delegate_thread_task_runner, | 27 RefPtr<TaskRunner>&& delegate_thread_task_runner, |
| 28 embedder::ProcessDelegate* process_delegate, | 28 embedder::ProcessDelegate* process_delegate, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, &is_first, | 164 CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, &is_first, |
| 165 &platform_connection_handle), | 165 &platform_connection_handle), |
| 166 ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION); | 166 ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION); |
| 167 DCHECK_EQ(peer_id, system::kMasterProcessIdentifier); | 167 DCHECK_EQ(peer_id, system::kMasterProcessIdentifier); |
| 168 DCHECK(platform_connection_handle.is_valid()); | 168 DCHECK(platform_connection_handle.is_valid()); |
| 169 return platform_connection_handle; | 169 return platform_connection_handle; |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace system | 172 } // namespace system |
| 173 } // namespace mojo | 173 } // namespace mojo |
| OLD | NEW |