mesa gn build: suppress -Wstring-conversion warnings
[chromium-blink-merge.git] / content / renderer / pepper / content_renderer_pepper_host_factory.h
blobe6feec9f2b355a8e30ef49c53a598ad1f8308d67
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.
5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
8 #include "base/compiler_specific.h"
9 #include "ppapi/host/host_factory.h"
10 #include "ppapi/shared_impl/ppapi_permissions.h"
12 namespace ppapi {
13 class PpapiPermissions;
16 namespace content {
17 class PepperInstanceStateAccessor;
18 class RendererPpapiHostImpl;
19 class RenderViewImpl;
21 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
22 public:
23 explicit ContentRendererPepperHostFactory(RendererPpapiHostImpl* host);
24 ~ContentRendererPepperHostFactory() override;
26 scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
27 ppapi::host::PpapiHost* host,
28 PP_Resource resource,
29 PP_Instance instance,
30 const IPC::Message& message) override;
32 private:
33 const ppapi::PpapiPermissions& GetPermissions() const;
35 // Non-owning pointer.
36 RendererPpapiHostImpl* host_;
38 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
41 } // namespace content
43 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_