#ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
#define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/host/resource_message_filter.h"
namespace content {
class BrowserPpapiHost;
}
namespace ppapi {
namespace host {
struct HostMessageContext;
}
}
namespace chrome {
class PepperOutputProtectionMessageFilter
: public ppapi::host::ResourceMessageFilter {
public:
PepperOutputProtectionMessageFilter(content::BrowserPpapiHost* host,
PP_Instance instance);
private:
#if defined(OS_CHROMEOS)
class Delegate;
#endif
virtual scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage(
const IPC::Message& msg) OVERRIDE;
virtual int32_t OnResourceMessageReceived(
const IPC::Message& msg,
ppapi::host::HostMessageContext* context) OVERRIDE;
virtual ~PepperOutputProtectionMessageFilter();
int32_t OnQueryStatus(ppapi::host::HostMessageContext* context);
int32_t OnEnableProtection(ppapi::host::HostMessageContext* context,
uint32_t desired_method_mask);
#if defined(OS_CHROMEOS)
Delegate* delegate_;
#endif
DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter);
};
}
#endif