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

Unified Diff: mojo/edk/system/ipc_support.cc

Issue 1462083003: Add //mojo/edk/platform and move platform_task_runners.h there. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: update readme 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/system/ipc_support.cc
diff --git a/mojo/edk/system/ipc_support.cc b/mojo/edk/system/ipc_support.cc
index 377b1df5f19f41aedc98490634e0cd3e9b2216d8..57010604a94c212b686079838ce56d6c5f27a369 100644
--- a/mojo/edk/system/ipc_support.cc
+++ b/mojo/edk/system/ipc_support.cc
@@ -15,18 +15,18 @@
#include "mojo/edk/system/message_pipe_dispatcher.h"
#include "mojo/edk/system/slave_connection_manager.h"
+using mojo::platform::TaskRunner;
using mojo::util::RefPtr;
namespace mojo {
namespace system {
-IPCSupport::IPCSupport(
- embedder::PlatformSupport* platform_support,
- embedder::ProcessType process_type,
- RefPtr<embedder::PlatformTaskRunner>&& delegate_thread_task_runner,
- embedder::ProcessDelegate* process_delegate,
- RefPtr<embedder::PlatformTaskRunner>&& io_thread_task_runner,
- embedder::ScopedPlatformHandle platform_handle)
+IPCSupport::IPCSupport(embedder::PlatformSupport* platform_support,
+ embedder::ProcessType process_type,
+ RefPtr<TaskRunner>&& delegate_thread_task_runner,
+ embedder::ProcessDelegate* process_delegate,
+ RefPtr<TaskRunner>&& io_thread_task_runner,
+ embedder::ScopedPlatformHandle platform_handle)
: process_type_(process_type),
delegate_thread_task_runner_(std::move(delegate_thread_task_runner)),
process_delegate_(process_delegate),
@@ -97,7 +97,7 @@ RefPtr<MessagePipeDispatcher> IPCSupport::ConnectToSlave(
embedder::SlaveInfo slave_info,
embedder::ScopedPlatformHandle platform_handle,
const base::Closure& callback,
- RefPtr<embedder::PlatformTaskRunner>&& callback_thread_task_runner,
+ RefPtr<TaskRunner>&& callback_thread_task_runner,
ChannelId* channel_id) {
DCHECK(channel_id);
@@ -116,7 +116,7 @@ RefPtr<MessagePipeDispatcher> IPCSupport::ConnectToSlave(
RefPtr<MessagePipeDispatcher> IPCSupport::ConnectToMaster(
const ConnectionIdentifier& connection_id,
const base::Closure& callback,
- RefPtr<embedder::PlatformTaskRunner>&& callback_thread_task_runner,
+ RefPtr<TaskRunner>&& callback_thread_task_runner,
ChannelId* channel_id) {
DCHECK(channel_id);

Powered by Google App Engine
This is Rietveld 408576698