OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | |
6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | |
7 | |
8 #include "ppapi/c/pp_instance.h" | |
9 #include "ppapi/c/private/ppp_content_decryptor_private.h" | |
10 #include "ppapi/proxy/interface_proxy.h" | |
11 #include "ppapi/proxy/serialized_structs.h" | |
12 #include "ppapi/shared_impl/host_resource.h" | |
13 | |
14 namespace ppapi { | |
15 namespace proxy { | |
16 | |
17 class SerializedVarReceiveInput; | |
18 | |
19 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy { | |
20 public: | |
21 explicit PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher); | |
22 virtual ~PPP_ContentDecryptor_Private_Proxy(); | |
23 | |
24 static const PPP_ContentDecryptor_Private* GetProxyInterface(); | |
25 | |
26 private: | |
27 // InterfaceProxy implementation. | |
28 virtual bool OnMessageReceived(const IPC::Message& msg); | |
29 | |
30 // Message handlers. | |
31 void OnMsgGenerateKeyRequest(PP_Instance instance, | |
32 SerializedVarReceiveInput key_system, | |
33 SerializedVarReceiveInput init_data); | |
34 void OnMsgAddKey(PP_Instance instance, | |
35 SerializedVarReceiveInput session_id, | |
36 SerializedVarReceiveInput key); | |
37 void OnMsgCancelKeyRequest(PP_Instance instance, | |
38 SerializedVarReceiveInput session_id); | |
39 void OnMsgDecrypt(PP_Instance instance, | |
40 PPPDecryptor_Buffer encrypted_buffer, | |
dmichael (off chromium)
2012/08/16 17:02:28
const &?
Tom Finegan
2012/08/16 18:10:58
Done.
| |
41 int32_t request_id); | |
42 void OnMsgDecryptAndDecode(PP_Instance instance, | |
43 const HostResource& encrypted_block, | |
44 int32_t request_id); | |
45 | |
46 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); | |
49 }; | |
50 | |
51 } // namespace proxy | |
52 } // namespace ppapi | |
53 | |
54 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | |
OLD | NEW |