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..bb773327171a62ae4ddb65ef4aaea5b81fcd4e3b |
| --- /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(ppapi::host::PpapiHost* host); |
| + |
| + protected: |
|
DaleCurtis
2013/09/13 22:08:33
Can all be private?
kcwu
2013/09/16 11:57:37
Done.
|
| + // 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; |
| + |
| + private: |
| + virtual ~PepperOutputProtectionMessageFilter(); |
| + |
| + int32_t OnQueryStatus(ppapi::host::HostMessageContext* context); |
| + int32_t OnEnableProtection(ppapi::host::HostMessageContext* context, |
| + uint32_t desired_method_mask); |
| + |
| + // Non-owning pointer. |
| + ppapi::host::PpapiHost* host_; |
|
DaleCurtis
2013/09/13 22:08:33
Not necessary.
kcwu
2013/09/16 11:57:37
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter); |
| +}; |
| + |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_ |