1 // Copyright 2013 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 CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/host/resource_message_filter.h"
12 class BrowserPpapiHost;
13 } // namespace content
17 struct HostMessageContext;
23 class PepperOutputProtectionMessageFilter
24 : public ppapi::host::ResourceMessageFilter {
26 PepperOutputProtectionMessageFilter(content::BrowserPpapiHost* host,
27 PP_Instance instance);
30 #if defined(OS_CHROMEOS)
34 // ppapi::host::ResourceMessageFilter overrides.
35 scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage(
36 const IPC::Message& msg) override;
37 int32_t OnResourceMessageReceived(
38 const IPC::Message& msg,
39 ppapi::host::HostMessageContext* context) override;
41 ~PepperOutputProtectionMessageFilter() override;
43 int32_t OnQueryStatus(ppapi::host::HostMessageContext* context);
44 int32_t OnEnableProtection(ppapi::host::HostMessageContext* context,
45 uint32_t desired_method_mask);
47 #if defined(OS_CHROMEOS)
48 // Delegator. Should be deleted in UI thread.
52 DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter);
57 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_