Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 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 | |||||
Sean Maher | e672a66 | 2023-01-09 21:42:28 | [diff] [blame] | 8 | #include "base/task/single_thread_task_runner.h" |
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 9 | #include "ppapi/proxy/proxy_channel.h" |
10 | |||||
David Sanders | 10242c1 | 2022-03-17 07:36:44 | [diff] [blame] | 11 | namespace base { |
12 | class WaitableEvent; | ||||
13 | } | ||||
14 | |||||
[email protected] | ca00e916 | 2012-04-03 05:35:36 | [diff] [blame] | 15 | namespace content { |
16 | |||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 17 | class PepperProxyChannelDelegateImpl |
18 | : public ppapi::proxy::ProxyChannel::Delegate { | ||||
19 | public: | ||||
dcheng | 6d18e40 | 2014-10-21 12:32:52 | [diff] [blame] | 20 | ~PepperProxyChannelDelegateImpl() override; |
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 21 | |
22 | // ProxyChannel::Delegate implementation. | ||||
skyostil | 12262cf | 2015-05-21 14:49:31 | [diff] [blame] | 23 | base::SingleThreadTaskRunner* GetIPCTaskRunner() override; |
dcheng | 6d18e40 | 2014-10-21 12:32:52 | [diff] [blame] | 24 | base::WaitableEvent* GetShutdownEvent() override; |
25 | IPC::PlatformFileForTransit ShareHandleWithRemote( | ||||
[email protected] | f0ecb55 | 2012-05-11 22:09:11 | [diff] [blame] | 26 | base::PlatformFile handle, |
[email protected] | 108fd34 | 2013-01-04 20:46:54 | [diff] [blame] | 27 | base::ProcessId remote_pid, |
mohan.reddy | ee0b42a | 2014-10-08 04:53:14 | [diff] [blame] | 28 | bool should_close_source) override; |
Alexandr Ilin | c7d975f | 2018-06-01 09:25:41 | [diff] [blame] | 29 | base::UnsafeSharedMemoryRegion ShareUnsafeSharedMemoryRegionWithRemote( |
30 | const base::UnsafeSharedMemoryRegion& region, | ||||
31 | base::ProcessId remote_pid) override; | ||||
32 | base::ReadOnlySharedMemoryRegion ShareReadOnlySharedMemoryRegionWithRemote( | ||||
33 | const base::ReadOnlySharedMemoryRegion& region, | ||||
34 | base::ProcessId remote_pid) override; | ||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 35 | }; |
36 | |||||
[email protected] | ca00e916 | 2012-04-03 05:35:36 | [diff] [blame] | 37 | } // namespace content |
38 | |||||
[email protected] | 31799bf | 2012-02-26 20:18:41 | [diff] [blame] | 39 | #endif // CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_ |