OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/common/mojo/channel_init.h" | |
6 | |
7 #include <utility> | |
8 | |
9 #include "base/bind.h" | |
10 #include "base/bind_helpers.h" | |
11 #include "base/command_line.h" | |
12 #include "base/lazy_instance.h" | |
13 #include "base/memory/ref_counted.h" | |
14 #include "base/message_loop/message_loop.h" | |
15 #include "base/task_runner.h" | |
16 #include "base/thread_task_runner_handle.h" | |
17 #include "mojo/edk/embedder/embedder.h" | |
18 | |
19 namespace content { | |
20 | |
21 ChannelInit::ChannelInit() {} | |
22 | |
23 ChannelInit::~ChannelInit() {} | |
24 | |
25 mojo::ScopedMessagePipeHandle ChannelInit::Init( | |
26 base::PlatformFile file, | |
27 scoped_refptr<base::TaskRunner> io_thread_task_runner) { | |
28 return mojo::edk::CreateMessagePipe( | |
29 mojo::edk::ScopedPlatformHandle(mojo::edk::PlatformHandle(file))); | |
30 } | |
31 | |
32 } // namespace content | |
OLD | NEW |