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_PROXY_H_ | |
6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PROXY_H_ | |
7 | |
8 #include "ppapi/c/dev/ppp_content_decryptor_dev.h" | |
9 #include "ppapi/c/pp_instance.h" | |
10 #include "ppapi/proxy/interface_proxy.h" | |
11 #include "ppapi/shared_impl/host_resource.h" | |
12 | |
13 namespace ppapi { | |
14 namespace proxy { | |
15 | |
16 class SerializedVarReceiveInput; | |
17 | |
18 class PPP_ContentDecryptor_Proxy : public InterfaceProxy { | |
19 public: | |
20 PPP_ContentDecryptor_Proxy(Dispatcher* dispatcher); | |
21 virtual ~PPP_ContentDecryptor_Proxy(); | |
22 | |
23 static const Info* GetInfo(); | |
24 | |
25 // InterfaceProxy implementation. | |
26 virtual bool OnMessageReceived(const IPC::Message& msg); | |
27 | |
28 private: | |
29 // Message handlers. | |
30 // TODO(tomfinegan): Not sure if I want to use OnPluginMsg or OnMsg. | |
dmichael (off chromium)
2012/08/08 22:24:02
OnMsg is fine in this case, since they're *all* ho
Tom Finegan
2012/08/09 22:45:17
Done.
| |
31 void OnPluginMsgGenerateKeyRequest(PP_Instance instance, | |
32 SerializedVarReceiveInput key_system, | |
33 SerializedVarReceiveInput init_data); | |
34 void OnPluginMsgAddKey(PP_Instance instance, | |
35 SerializedVarReceiveInput session_id, | |
36 SerializedVarReceiveInput key); | |
37 void OnPluginMsgCancelKeyRequest(PP_Instance instance, | |
38 SerializedVarReceiveInput session_id); | |
39 void OnPluginMsgDecrypt(PP_Instance instance, | |
40 const HostResource& encrypted_block, | |
41 uint64_t request_id); | |
42 void OnPluginMsgDecryptAndDecode(PP_Instance instance, | |
43 const HostResource& encrypted_block, | |
44 uint64_t request_id); | |
45 | |
46 const PPP_ContentDecryptor_Dev* ppp_decryptor_impl_; | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Proxy); | |
49 }; | |
50 | |
51 } // namespace proxy | |
52 } // namespace ppapi | |
53 | |
54 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PROXY_H_ | |
OLD | NEW |