Index: chrome/browser/renderer_host/pepper/pepper_output_protection_host.h |
diff --git a/chrome/browser/renderer_host/pepper/pepper_output_protection_host.h b/chrome/browser/renderer_host/pepper/pepper_output_protection_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d62b8c7a831091ffd81334ba050c6c907dcb90c |
--- /dev/null |
+++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_host.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. |
+ |
DaleCurtis
2013/09/12 01:23:13
Extra space.
kcwu
2013/09/12 18:22:08
Done.
|
+ |
+#ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_ |
+#define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_ |
+ |
+#include "ppapi/host/host_message_context.h" |
+#include "ppapi/host/resource_host.h" |
+ |
+namespace content { |
+class BrowserPpapiHost; |
+} // namespace content |
+ |
+namespace chrome { |
+ |
+class PepperOutputProtectionHost |
+ : public ppapi::host::ResourceHost { |
+ public: |
+ PepperOutputProtectionHost(content::BrowserPpapiHost* host, |
+ PP_Instance instance, |
+ PP_Resource resource); |
+ virtual ~PepperOutputProtectionHost(); |
+ |
+ virtual int32_t OnResourceMessageReceived( |
+ const IPC::Message& msg, |
+ ppapi::host::HostMessageContext* context) OVERRIDE; |
+ |
+ private: |
+ int32_t OnQueryStatus(ppapi::host::HostMessageContext* context); |
+ void QueryStatusOnUIThread(ppapi::host::ReplyMessageContext reply_context); |
+ int32_t OnEnableProtection(ppapi::host::HostMessageContext* context, |
+ uint32_t desired_method_mask); |
+ void EnableProtectionOnUIThread( |
+ ppapi::host::ReplyMessageContext reply_context, |
+ uint32_t desired_method_mask); |
+ |
+ void Close(); |
ddorwin
2013/09/12 04:22:13
Not implemented.
kcwu
2013/09/12 18:22:08
Done.
|
+ |
+ // Non-owning pointer. |
+ content::BrowserPpapiHost* renderer_ppapi_host_; |
DaleCurtis
2013/09/12 01:23:13
Unused?
kcwu
2013/09/12 18:22:08
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionHost); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_ |