OLD | NEW |
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/common/child_process.h" | 7 #include "content/common/child_process.h" |
8 | 8 |
| 9 namespace content { |
| 10 |
9 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() { | 11 PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() { |
10 } | 12 } |
11 | 13 |
12 base::MessageLoopProxy* PepperProxyChannelDelegateImpl::GetIPCMessageLoop() { | 14 base::MessageLoopProxy* PepperProxyChannelDelegateImpl::GetIPCMessageLoop() { |
13 // This is called only in the renderer so we know we have a child process. | 15 // This is called only in the renderer so we know we have a child process. |
14 DCHECK(ChildProcess::current()) << "Must be in the renderer."; | 16 DCHECK(ChildProcess::current()) << "Must be in the renderer."; |
15 return ChildProcess::current()->io_message_loop_proxy(); | 17 return ChildProcess::current()->io_message_loop_proxy(); |
16 } | 18 } |
17 | 19 |
18 base::WaitableEvent* PepperProxyChannelDelegateImpl::GetShutdownEvent() { | 20 base::WaitableEvent* PepperProxyChannelDelegateImpl::GetShutdownEvent() { |
19 DCHECK(ChildProcess::current()) << "Must be in the renderer."; | 21 DCHECK(ChildProcess::current()) << "Must be in the renderer."; |
20 return ChildProcess::current()->GetShutDownEvent(); | 22 return ChildProcess::current()->GetShutDownEvent(); |
21 } | 23 } |
| 24 |
| 25 } // namespace content |
OLD | NEW |