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

Side by Side Diff: chrome/browser/renderer_host/pepper/pepper_output_protection_host.h

Issue 24039002: Pepper API implementation for output protection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: tweaks conditional compile conditions 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
DaleCurtis 2013/09/12 01:23:13 Extra space.
kcwu 2013/09/12 18:22:08 Done.
5
6 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_
7 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_
8
9 #include "ppapi/host/host_message_context.h"
10 #include "ppapi/host/resource_host.h"
11
12 namespace content {
13 class BrowserPpapiHost;
14 } // namespace content
15
16 namespace chrome {
17
18 class PepperOutputProtectionHost
19 : public ppapi::host::ResourceHost {
20 public:
21 PepperOutputProtectionHost(content::BrowserPpapiHost* host,
22 PP_Instance instance,
23 PP_Resource resource);
24 virtual ~PepperOutputProtectionHost();
25
26 virtual int32_t OnResourceMessageReceived(
27 const IPC::Message& msg,
28 ppapi::host::HostMessageContext* context) OVERRIDE;
29
30 private:
31 int32_t OnQueryStatus(ppapi::host::HostMessageContext* context);
32 void QueryStatusOnUIThread(ppapi::host::ReplyMessageContext reply_context);
33 int32_t OnEnableProtection(ppapi::host::HostMessageContext* context,
34 uint32_t desired_method_mask);
35 void EnableProtectionOnUIThread(
36 ppapi::host::ReplyMessageContext reply_context,
37 uint32_t desired_method_mask);
38
39 void Close();
ddorwin 2013/09/12 04:22:13 Not implemented.
kcwu 2013/09/12 18:22:08 Done.
40
41 // Non-owning pointer.
42 content::BrowserPpapiHost* renderer_ppapi_host_;
DaleCurtis 2013/09/12 01:23:13 Unused?
kcwu 2013/09/12 18:22:08 Done.
43
44 DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionHost);
45 };
46
47 } // namespace chrome
48
49 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698