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

Side by Side Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.h

Issue 10854209: Modify the PPAPI CDM interface to pass more info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
7 7
8 #include <string>
9
8 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/private/ppp_content_decryptor_private.h" 11 #include "ppapi/c/private/ppp_content_decryptor_private.h"
10 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
11 #include "ppapi/proxy/serialized_structs.h" 13 #include "ppapi/proxy/serialized_structs.h"
12 #include "ppapi/shared_impl/host_resource.h" 14 #include "ppapi/shared_impl/host_resource.h"
13 15
14 namespace ppapi { 16 namespace ppapi {
15 namespace proxy { 17 namespace proxy {
16 18
17 class SerializedVarReceiveInput; 19 class SerializedVarReceiveInput;
18 20
19 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy { 21 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy {
20 public: 22 public:
21 explicit PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher); 23 explicit PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher);
22 virtual ~PPP_ContentDecryptor_Private_Proxy(); 24 virtual ~PPP_ContentDecryptor_Private_Proxy();
23 25
24 static const PPP_ContentDecryptor_Private* GetProxyInterface(); 26 static const PPP_ContentDecryptor_Private* GetProxyInterface();
25 27
26 private: 28 private:
27 // InterfaceProxy implementation. 29 // InterfaceProxy implementation.
28 virtual bool OnMessageReceived(const IPC::Message& msg); 30 virtual bool OnMessageReceived(const IPC::Message& msg);
29 31
30 // Message handlers. 32 // Message handlers.
31 void OnMsgGenerateKeyRequest(PP_Instance instance, 33 void OnMsgGenerateKeyRequest(PP_Instance instance,
32 SerializedVarReceiveInput key_system, 34 SerializedVarReceiveInput key_system,
33 SerializedVarReceiveInput init_data); 35 SerializedVarReceiveInput init_data);
34 void OnMsgAddKey(PP_Instance instance, 36 void OnMsgAddKey(PP_Instance instance,
35 SerializedVarReceiveInput session_id, 37 SerializedVarReceiveInput session_id,
36 SerializedVarReceiveInput key); 38 SerializedVarReceiveInput key,
39 SerializedVarReceiveInput init_data);
37 void OnMsgCancelKeyRequest(PP_Instance instance, 40 void OnMsgCancelKeyRequest(PP_Instance instance,
38 SerializedVarReceiveInput session_id); 41 SerializedVarReceiveInput session_id);
39 void OnMsgDecrypt(PP_Instance instance, 42 void OnMsgDecrypt(PP_Instance instance,
40 const PPPDecryptor_Buffer& encrypted_buffer, 43 const PPPDecryptor_Buffer& encrypted_buffer,
41 int32_t request_id); 44 const std::string& serialized_encrypted_block_info);
42 void OnMsgDecryptAndDecode(PP_Instance instance, 45 void OnMsgDecryptAndDecode(
43 const HostResource& encrypted_block, 46 PP_Instance instance,
44 int32_t request_id); 47 const PPPDecryptor_Buffer& encrypted_buffer,
48 const std::string& serialized_encrypted_block_info);
45 49
46 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; 50 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_;
47 51
48 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); 52 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy);
49 }; 53 };
50 54
51 } // namespace proxy 55 } // namespace proxy
52 } // namespace ppapi 56 } // namespace ppapi
53 57
54 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 58 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698