Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: mojo/edk/system/ipc_support.cc

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/ipc_support.h ('k') | mojo/edk/system/ipc_support_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/ipc_support.h ('k') | mojo/edk/system/ipc_support_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698