| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FIL
TER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FIL
TER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FIL
TER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FIL
TER_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/host/resource_message_filter.h" | 9 #include "ppapi/host/resource_message_filter.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 PepperOutputProtectionMessageFilter(content::BrowserPpapiHost* host, | 26 PepperOutputProtectionMessageFilter(content::BrowserPpapiHost* host, |
| 27 PP_Instance instance); | 27 PP_Instance instance); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
| 31 class Delegate; | 31 class Delegate; |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 // ppapi::host::ResourceMessageFilter overrides. | 34 // ppapi::host::ResourceMessageFilter overrides. |
| 35 virtual scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage( | 35 scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage( |
| 36 const IPC::Message& msg) override; | 36 const IPC::Message& msg) override; |
| 37 virtual int32_t OnResourceMessageReceived( | 37 int32_t OnResourceMessageReceived( |
| 38 const IPC::Message& msg, | 38 const IPC::Message& msg, |
| 39 ppapi::host::HostMessageContext* context) override; | 39 ppapi::host::HostMessageContext* context) override; |
| 40 | 40 |
| 41 virtual ~PepperOutputProtectionMessageFilter(); | 41 ~PepperOutputProtectionMessageFilter() override; |
| 42 | 42 |
| 43 int32_t OnQueryStatus(ppapi::host::HostMessageContext* context); | 43 int32_t OnQueryStatus(ppapi::host::HostMessageContext* context); |
| 44 int32_t OnEnableProtection(ppapi::host::HostMessageContext* context, | 44 int32_t OnEnableProtection(ppapi::host::HostMessageContext* context, |
| 45 uint32_t desired_method_mask); | 45 uint32_t desired_method_mask); |
| 46 | 46 |
| 47 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
| 48 // Delegator. Should be deleted in UI thread. | 48 // Delegator. Should be deleted in UI thread. |
| 49 Delegate* delegate_; | 49 Delegate* delegate_; |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter); | 52 DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace chrome | 55 } // namespace chrome |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_
FILTER_H_ | 57 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_
FILTER_H_ |
| OLD | NEW |