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

Side by Side Diff: content/renderer/pepper/pepper_proxy_channel_delegate_impl.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h"
6 6
7 #include "content/child/child_process.h" 7 #include "content/child/child_process.h"
8 #include "content/common/sandbox_util.h" 8 #include "content/common/sandbox_util.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() {} 12 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() {}
13 13
14 base::MessageLoopProxy* PepperProxyChannelDelegateImpl::GetIPCMessageLoop() { 14 base::SingleThreadTaskRunner*
15 PepperProxyChannelDelegateImpl::GetIPCTaskRunner() {
15 // This is called only in the renderer so we know we have a child process. 16 // This is called only in the renderer so we know we have a child process.
16 DCHECK(ChildProcess::current()) << "Must be in the renderer."; 17 DCHECK(ChildProcess::current()) << "Must be in the renderer.";
17 return ChildProcess::current()->io_message_loop_proxy(); 18 return ChildProcess::current()->io_task_runner();
18 } 19 }
19 20
20 base::WaitableEvent* PepperProxyChannelDelegateImpl::GetShutdownEvent() { 21 base::WaitableEvent* PepperProxyChannelDelegateImpl::GetShutdownEvent() {
21 DCHECK(ChildProcess::current()) << "Must be in the renderer."; 22 DCHECK(ChildProcess::current()) << "Must be in the renderer.";
22 return ChildProcess::current()->GetShutDownEvent(); 23 return ChildProcess::current()->GetShutDownEvent();
23 } 24 }
24 25
25 IPC::PlatformFileForTransit 26 IPC::PlatformFileForTransit
26 PepperProxyChannelDelegateImpl::ShareHandleWithRemote( 27 PepperProxyChannelDelegateImpl::ShareHandleWithRemote(
27 base::PlatformFile handle, 28 base::PlatformFile handle,
28 base::ProcessId remote_pid, 29 base::ProcessId remote_pid,
29 bool should_close_source) { 30 bool should_close_source) {
30 return BrokerGetFileHandleForProcess(handle, remote_pid, should_close_source); 31 return BrokerGetFileHandleForProcess(handle, remote_pid, should_close_source);
31 } 32 }
32 33
33 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_proxy_channel_delegate_impl.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698