blob: 151d441f417823ebb4df07b6957de760ae6c01ed [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2012 The Chromium Authors
[email protected]31799bf2012-02-26 20:18:412// 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 Mahere672a662023-01-09 21:42:288#include "base/task/single_thread_task_runner.h"
[email protected]31799bf2012-02-26 20:18:419#include "ppapi/proxy/proxy_channel.h"
10
David Sanders10242c12022-03-17 07:36:4411namespace base {
12class WaitableEvent;
13}
14
[email protected]ca00e9162012-04-03 05:35:3615namespace content {
16
[email protected]31799bf2012-02-26 20:18:4117class PepperProxyChannelDelegateImpl
18 : public ppapi::proxy::ProxyChannel::Delegate {
19 public:
dcheng6d18e402014-10-21 12:32:5220 ~PepperProxyChannelDelegateImpl() override;
[email protected]31799bf2012-02-26 20:18:4121
22 // ProxyChannel::Delegate implementation.
skyostil12262cf2015-05-21 14:49:3123 base::SingleThreadTaskRunner* GetIPCTaskRunner() override;
dcheng6d18e402014-10-21 12:32:5224 base::WaitableEvent* GetShutdownEvent() override;
25 IPC::PlatformFileForTransit ShareHandleWithRemote(
[email protected]f0ecb552012-05-11 22:09:1126 base::PlatformFile handle,
[email protected]108fd342013-01-04 20:46:5427 base::ProcessId remote_pid,
mohan.reddyee0b42a2014-10-08 04:53:1428 bool should_close_source) override;
Alexandr Ilinc7d975f2018-06-01 09:25:4129 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]31799bf2012-02-26 20:18:4135};
36
[email protected]ca00e9162012-04-03 05:35:3637} // namespace content
38
[email protected]31799bf2012-02-26 20:18:4139#endif // CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_