Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h

Issue 24039002: Pepper API implementation for output protection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix build for non-chromeos Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d64260f7b663e585929e5f79faa083a5635b60f1
--- /dev/null
+++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h
@@ -0,0 +1,56 @@
+// 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"
+
+#if defined(OS_CHROMEOS)
+#include "chromeos/display/output_configurator.h"
+#endif
+
+namespace ppapi {
+namespace host {
+class PpapiHost;
+}
+}
+
+namespace chrome {
+
+class PepperOutputProtectionMessageFilter
+ : public ppapi::host::ResourceMessageFilter {
+ public:
+ PepperOutputProtectionMessageFilter();
+
+ 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();
+
+#if defined(OS_CHROMEOS)
+ chromeos::OutputConfigurator::OutputProtectionClientId GetClientId();
+#endif
+ int32_t OnQueryStatus(ppapi::host::HostMessageContext* context);
+ int32_t OnEnableProtection(ppapi::host::HostMessageContext* context,
+ uint32_t desired_method_mask);
+
+#if defined(OS_CHROMEOS)
+ chromeos::OutputConfigurator::OutputProtectionClientId client_id_;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698