#ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_
#define CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
#include "ppapi/host/resource_host.h"
namespace base {
class FilePath;
}
namespace content {
class RendererPpapiHost;
}
class PepperFlashDRMRendererHost : public ppapi::host::ResourceHost {
public:
PepperFlashDRMRendererHost(content::RendererPpapiHost* host,
PP_Instance instance,
PP_Resource resource);
virtual ~PepperFlashDRMRendererHost();
virtual int32_t OnResourceMessageReceived(
const IPC::Message& msg,
ppapi::host::HostMessageContext* context) OVERRIDE;
private:
int32_t OnGetVoucherFile(ppapi::host::HostMessageContext* context);
void DidCreateFileRefHosts(
const ppapi::host::ReplyMessageContext& reply_context,
const base::FilePath& external_path,
int renderer_pending_host_id,
const std::vector<int>& browser_pending_host_ids);
content::RendererPpapiHost* renderer_ppapi_host_;
base::WeakPtrFactory<PepperFlashDRMRendererHost> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PepperFlashDRMRendererHost);
};
#endif