blob: 147c68cc9f8985fc5775f65c71a4bc96632c49aa [file] [log] [blame]
[email protected]31799bf2012-02-26 20:18:411// 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]ca00e9162012-04-03 05:35:3611namespace content {
12
[email protected]31799bf2012-02-26 20:18:4113class PepperProxyChannelDelegateImpl
14 : public ppapi::proxy::ProxyChannel::Delegate {
15 public:
dcheng6d18e402014-10-21 12:32:5216 ~PepperProxyChannelDelegateImpl() override;
[email protected]31799bf2012-02-26 20:18:4117
18 // ProxyChannel::Delegate implementation.
skyostil12262cf2015-05-21 14:49:3119 base::SingleThreadTaskRunner* GetIPCTaskRunner() override;
dcheng6d18e402014-10-21 12:32:5220 base::WaitableEvent* GetShutdownEvent() override;
21 IPC::PlatformFileForTransit ShareHandleWithRemote(
[email protected]f0ecb552012-05-11 22:09:1122 base::PlatformFile handle,
[email protected]108fd342013-01-04 20:46:5423 base::ProcessId remote_pid,
mohan.reddyee0b42a2014-10-08 04:53:1424 bool should_close_source) override;
erikchen4fc32d52015-06-02 02:16:3825 base::SharedMemoryHandle ShareSharedMemoryHandleWithRemote(
26 const base::SharedMemoryHandle& handle,
27 base::ProcessId remote_pid) override;
Alexandr Ilinc7d975f2018-06-01 09:25:4128 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]31799bf2012-02-26 20:18:4134};
35
[email protected]ca00e9162012-04-03 05:35:3636} // namespace content
37
[email protected]31799bf2012-02-26 20:18:4138#endif // CONTENT_RENDERER_PEPPER_PEPPER_PROXY_CHANNEL_DELEGATE_IMPL_H_