blob: c31aa23d75e3d90947bf87bf34aef94e83d8b596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef PEPPER_RENDERER_HOST_FACTORY_QT_H
#define PEPPER_RENDERER_HOST_FACTORY_QT_H
#include "ppapi/host/host_factory.h"
#include "content/public/renderer/render_frame_observer.h"
namespace content {
class RenderFrame;
}
namespace QtWebEngineCore {
class PepperRendererHostFactoryQt : public ppapi::host::HostFactory {
public:
explicit PepperRendererHostFactoryQt(content::RendererPpapiHost* host);
~PepperRendererHostFactoryQt();
// HostFactory.
std::unique_ptr<ppapi::host::ResourceHost> CreateResourceHost(
ppapi::host::PpapiHost* host,
PP_Resource resource,
PP_Instance instance,
const IPC::Message& message) override;
private:
// Not owned by this object.
content::RendererPpapiHost* host_;
};
} // namespace QtWebEngineCore
#endif // PEPPER_RENDERER_HOST_FACTORY_QT_H
|