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

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

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "mojo/edk/embedder/master_process_delegate.h" 10 #include "mojo/edk/embedder/master_process_delegate.h"
11 #include "mojo/edk/embedder/slave_process_delegate.h" 11 #include "mojo/edk/embedder/slave_process_delegate.h"
12 #include "mojo/edk/system/channel_manager.h" 12 #include "mojo/edk/system/channel_manager.h"
13 #include "mojo/edk/system/master_connection_manager.h" 13 #include "mojo/edk/system/master_connection_manager.h"
14 #include "mojo/edk/system/message_pipe_dispatcher.h" 14 #include "mojo/edk/system/message_pipe_dispatcher.h"
15 #include "mojo/edk/system/slave_connection_manager.h" 15 #include "mojo/edk/system/slave_connection_manager.h"
16 16
17 using mojo::util::RefPtr;
18
17 namespace mojo { 19 namespace mojo {
18 namespace system { 20 namespace system {
19 21
20 IPCSupport::IPCSupport( 22 IPCSupport::IPCSupport(
21 embedder::PlatformSupport* platform_support, 23 embedder::PlatformSupport* platform_support,
22 embedder::ProcessType process_type, 24 embedder::ProcessType process_type,
23 embedder::PlatformTaskRunnerRefPtr delegate_thread_task_runner, 25 embedder::PlatformTaskRunnerRefPtr delegate_thread_task_runner,
24 embedder::ProcessDelegate* process_delegate, 26 embedder::ProcessDelegate* process_delegate,
25 embedder::PlatformTaskRunnerRefPtr io_thread_task_runner, 27 embedder::PlatformTaskRunnerRefPtr io_thread_task_runner,
26 embedder::ScopedPlatformHandle platform_handle) 28 embedder::ScopedPlatformHandle platform_handle)
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, &is_first, 162 CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, &is_first,
161 &platform_connection_handle), 163 &platform_connection_handle),
162 ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION); 164 ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION);
163 DCHECK_EQ(peer_id, system::kMasterProcessIdentifier); 165 DCHECK_EQ(peer_id, system::kMasterProcessIdentifier);
164 DCHECK(platform_connection_handle.is_valid()); 166 DCHECK(platform_connection_handle.is_valid());
165 return platform_connection_handle; 167 return platform_connection_handle;
166 } 168 }
167 169
168 } // namespace system 170 } // namespace system
169 } // namespace mojo 171 } // 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