Chromium Code Reviews| Index: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h |
| diff --git a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e07100a1b14ae1fb8c25297b163eb4c032bf0ab9 |
| --- /dev/null |
| +++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| + |
| +#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 "content/public/browser/browser_thread.h" |
| +#include "ppapi/host/host_message_context.h" |
| +#include "ppapi/host/resource_message_filter.h" |
| + |
| +namespace ppapi { |
| +namespace host { |
| +class PpapiHost; |
| +} |
| +} |
| + |
| +namespace chrome { |
| + |
| +class PepperOutputProtectionMessageFilter |
| + : public ppapi::host::ResourceMessageFilter { |
| + public: |
| + explicit PepperOutputProtectionMessageFilter(); |
|
dmichael (off chromium)
2013/09/17 17:25:33
nit: no need for explicit on a default constructor
kcwu
2013/09/17 23:15:32
Done.
|
| + |
| + private: |
| + // ppapi::host::ResourceMessageFilter overrides. |
| + 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 OnInit(ppapi::host::HostMessageContext* context); |
| + int32_t OnTerminate(ppapi::host::HostMessageContext* context); |
| + int32_t OnQueryStatus(ppapi::host::HostMessageContext* context); |
| + int32_t OnEnableProtection(ppapi::host::HostMessageContext* context, |
| + uint32_t desired_method_mask); |
| + |
| + uint64_t client_id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter); |
| +}; |
| + |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_ |