OLD | NEW |
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> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 static const PPP_ContentDecryptor_Private* GetProxyInterface(); | 26 static const PPP_ContentDecryptor_Private* GetProxyInterface(); |
27 | 27 |
28 private: | 28 private: |
29 // InterfaceProxy implementation. | 29 // InterfaceProxy implementation. |
30 virtual bool OnMessageReceived(const IPC::Message& msg); | 30 virtual bool OnMessageReceived(const IPC::Message& msg); |
31 | 31 |
32 // Message handlers. | 32 // Message handlers. |
33 void OnMsgInitialize(PP_Instance instance, | 33 void OnMsgInitialize(PP_Instance instance, |
34 SerializedVarReceiveInput key_system); | 34 SerializedVarReceiveInput key_system); |
35 void OnMsgCreateSession(PP_Instance instance, | 35 void OnMsgCreateSession(PP_Instance instance, |
36 uint32_t session_id, | 36 uint32_t promise_id, |
37 SerializedVarReceiveInput content_type, | 37 SerializedVarReceiveInput init_data_type, |
38 SerializedVarReceiveInput init_data); | 38 SerializedVarReceiveInput init_data, |
| 39 PP_SessionType session_type); |
39 void OnMsgLoadSession(PP_Instance instance, | 40 void OnMsgLoadSession(PP_Instance instance, |
40 uint32_t session_id, | 41 uint32_t promise_id, |
41 SerializedVarReceiveInput web_session_id); | 42 SerializedVarReceiveInput web_session_id); |
42 void OnMsgUpdateSession(PP_Instance instance, | 43 void OnMsgUpdateSession(PP_Instance instance, |
43 uint32_t session_id, | 44 uint32_t promise_id, |
| 45 SerializedVarReceiveInput web_session_id, |
44 SerializedVarReceiveInput response); | 46 SerializedVarReceiveInput response); |
45 void OnMsgReleaseSession(PP_Instance instance, uint32_t session_id); | 47 void OnMsgReleaseSession(PP_Instance instance, |
| 48 uint32_t promise_id, |
| 49 SerializedVarReceiveInput web_session_id); |
46 void OnMsgDecrypt(PP_Instance instance, | 50 void OnMsgDecrypt(PP_Instance instance, |
47 const PPPDecryptor_Buffer& encrypted_buffer, | 51 const PPPDecryptor_Buffer& encrypted_buffer, |
48 const std::string& serialized_encrypted_block_info); | 52 const std::string& serialized_encrypted_block_info); |
49 void OnMsgInitializeAudioDecoder( | 53 void OnMsgInitializeAudioDecoder( |
50 PP_Instance instance, | 54 PP_Instance instance, |
51 const std::string& decoder_config, | 55 const std::string& decoder_config, |
52 const PPPDecryptor_Buffer& extra_data_buffer); | 56 const PPPDecryptor_Buffer& extra_data_buffer); |
53 void OnMsgInitializeVideoDecoder( | 57 void OnMsgInitializeVideoDecoder( |
54 PP_Instance instance, | 58 PP_Instance instance, |
55 const std::string& decoder_config, | 59 const std::string& decoder_config, |
(...skipping 12 matching lines...) Expand all Loading... |
68 | 72 |
69 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; | 73 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; |
70 | 74 |
71 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); | 75 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); |
72 }; | 76 }; |
73 | 77 |
74 } // namespace proxy | 78 } // namespace proxy |
75 } // namespace ppapi | 79 } // namespace ppapi |
76 | 80 |
77 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | 81 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ |
OLD | NEW |