OLD | NEW |
---|---|
(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 | |
5 #ifndef PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_ | |
6 #define PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "ppapi/c/private/ppb_output_protection_private.h" | |
10 #include "ppapi/proxy/device_enumeration_resource_helper.h" | |
11 #include "ppapi/proxy/plugin_resource.h" | |
12 #include "ppapi/thunk/ppb_output_protection_api.h" | |
13 | |
14 namespace ppapi { | |
15 namespace proxy { | |
16 | |
17 class OutputProtectionResource | |
18 : public PluginResource, | |
19 public ::ppapi::thunk::PPB_OutputProtection_API { | |
20 public: | |
21 OutputProtectionResource(Connection connection, | |
22 PP_Instance instance); | |
23 virtual ~OutputProtectionResource(); | |
dmichael (off chromium)
2013/09/09 20:37:15
nit: the destructor and below can be private.
kcwu
2013/09/10 12:50:21
Done.
It compiles but I don't understand.
This cla
dmichael (off chromium)
2013/09/11 18:22:45
Not everyone in Chromium likes to do it this way,
kcwu
2013/09/12 18:22:08
Done.
| |
24 | |
25 // PluginResource overrides. | |
26 virtual thunk::PPB_OutputProtection_API* AsPPB_OutputProtection_API() | |
27 OVERRIDE; | |
28 | |
29 // PPB_OutputProtection_API implementation. | |
30 virtual int32_t QueryStatus(uint32_t* link_mask, uint32_t* protection_mask, | |
31 scoped_refptr<TrackedCallback> callback) OVERRIDE; | |
32 virtual int32_t EnableProtection( | |
33 uint32_t desired_method_mask, | |
34 scoped_refptr<TrackedCallback> callback) OVERRIDE; | |
35 | |
36 private: | |
37 void OnPluginMsgQueryStatusReply( | |
38 const ResourceMessageReplyParams& params, | |
39 uint32_t link_mask, | |
40 uint32_t protection_mask); | |
41 void OnPluginMsgEnableProtectionReply( | |
42 const ResourceMessageReplyParams& params); | |
43 | |
44 uint32_t* link_mask_; | |
45 uint32_t* protection_mask_; | |
46 scoped_refptr<TrackedCallback> query_status_callback_; | |
47 scoped_refptr<TrackedCallback> enable_protection_callback_; | |
48 | |
49 DISALLOW_COPY_AND_ASSIGN(OutputProtectionResource); | |
50 }; | |
51 | |
52 } // namespace proxy | |
53 } // namespace ppapi | |
54 | |
55 #endif // PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_ | |
OLD | NEW |