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"
13 class PpapiPermissions
;
17 class PepperInstanceStateAccessor
;
18 class RendererPpapiHostImpl
;
21 class ContentRendererPepperHostFactory
: public ppapi::host::HostFactory
{
23 explicit ContentRendererPepperHostFactory(
24 RendererPpapiHostImpl
* host
);
25 virtual ~ContentRendererPepperHostFactory();
27 virtual scoped_ptr
<ppapi::host::ResourceHost
> CreateResourceHost(
28 ppapi::host::PpapiHost
* host
,
29 const ppapi::proxy::ResourceMessageCallParams
& params
,
31 const IPC::Message
& message
) OVERRIDE
;
34 const ppapi::PpapiPermissions
& GetPermissions() const;
36 // Non-owning pointer.
37 RendererPpapiHostImpl
* host_
;
39 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory
);
42 } // namespace content
44 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_