[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_ | ||||
6 | #define CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_ | ||||
7 | |||||
8 | #include "base/compiler_specific.h" | ||||
9 | #include "ppapi/proxy/proxy_channel.h" | ||||
10 | |||||
[email protected] | ca00e916 | 2012-04-03 05:35:36 | [diff] [blame] | 11 | namespace content { |
12 | |||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 13 | class PepperProxyChannelDelegateImpl |
14 | : public ppapi::proxy::ProxyChannel::Delegate { | ||||
15 | public: | ||||
dcheng | 6d18e40 | 2014-10-21 12:32:52 | [diff] [blame] | 16 | ~PepperProxyChannelDelegateImpl() override; |
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 17 | |
18 | // ProxyChannel::Delegate implementation. | ||||
skyostil | 12262cf | 2015-05-21 14:49:31 | [diff] [blame] | 19 | base::SingleThreadTaskRunner* GetIPCTaskRunner() override; |
dcheng | 6d18e40 | 2014-10-21 12:32:52 | [diff] [blame] | 20 | base::WaitableEvent* GetShutdownEvent() override; |
21 | IPC::PlatformFileForTransit ShareHandleWithRemote( | ||||
[email protected] | f0ecb55 | 2012-05-11 22:09:11 | [diff] [blame] | 22 | base::PlatformFile handle, |
[email protected] | 108fd34 | 2013-01-04 20:46:54 | [diff] [blame] | 23 | base::ProcessId remote_pid, |
mohan.reddy | ee0b42a | 2014-10-08 04:53:14 | [diff] [blame] | 24 | bool should_close_source) override; |
erikchen | 4fc32d5 | 2015-06-02 02:16:38 | [diff] [blame] | 25 | base::SharedMemoryHandle ShareSharedMemoryHandleWithRemote( |
26 | const base::SharedMemoryHandle& handle, | ||||
27 | base::ProcessId remote_pid) override; | ||||
Alexandr Ilin | c7d975f | 2018-06-01 09:25:41 | [diff] [blame^] | 28 | base::UnsafeSharedMemoryRegion ShareUnsafeSharedMemoryRegionWithRemote( |
29 | const base::UnsafeSharedMemoryRegion& region, | ||||
30 | base::ProcessId remote_pid) override; | ||||
31 | base::ReadOnlySharedMemoryRegion ShareReadOnlySharedMemoryRegionWithRemote( | ||||
32 | const base::ReadOnlySharedMemoryRegion& region, | ||||
33 | base::ProcessId remote_pid) override; | ||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 34 | }; |
35 | |||||
[email protected] | ca00e916 | 2012-04-03 05:35:36 | [diff] [blame] | 36 | } // namespace content |
37 | |||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 38 | #endif // CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_ |