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

Side by Side Diff: content/common/mojo/channel_init.cc

Issue 1891043002: Revert of Use a token to initialise ChannelMojo and MojoApplication everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 | « content/common/mojo/channel_init.h ('k') | content/common/mojo/mojo_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/common/mojo/channel_init.h ('k') | content/common/mojo/mojo_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698