#ifndef CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
#define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
#include "base/compiler_specific.h"
#include "ppapi/host/host_factory.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
namespace ppapi {
class PpapiPermissions;
}
namespace content {
class PepperInstanceStateAccessor;
class RendererPpapiHostImpl;
class RenderViewImpl;
class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
public:
explicit ContentRendererPepperHostFactory(
RendererPpapiHostImpl* host);
virtual ~ContentRendererPepperHostFactory();
virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
ppapi::host::PpapiHost* host,
const ppapi::proxy::ResourceMessageCallParams& params,
PP_Instance instance,
const IPC::Message& message) OVERRIDE;
private:
const ppapi::PpapiPermissions& GetPermissions() const;
RendererPpapiHostImpl* host_;
DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
};
}
#endif