| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 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 OnMsgSetServerCertificate(PP_Instance instance, |
| 36 uint32_t promise_id, |
| 37 SerializedVarReceiveInput server_certificate); |
| 35 void OnMsgCreateSession(PP_Instance instance, | 38 void OnMsgCreateSession(PP_Instance instance, |
| 36 uint32_t promise_id, | 39 uint32_t promise_id, |
| 37 SerializedVarReceiveInput init_data_type, | 40 SerializedVarReceiveInput init_data_type, |
| 38 SerializedVarReceiveInput init_data, | 41 SerializedVarReceiveInput init_data, |
| 39 PP_SessionType session_type); | 42 PP_SessionType session_type); |
| 40 void OnMsgLoadSession(PP_Instance instance, | 43 void OnMsgLoadSession(PP_Instance instance, |
| 41 uint32_t promise_id, | 44 uint32_t promise_id, |
| 42 SerializedVarReceiveInput web_session_id); | 45 SerializedVarReceiveInput web_session_id); |
| 43 void OnMsgUpdateSession(PP_Instance instance, | 46 void OnMsgUpdateSession(PP_Instance instance, |
| 44 uint32_t promise_id, | 47 uint32_t promise_id, |
| 45 SerializedVarReceiveInput web_session_id, | 48 SerializedVarReceiveInput web_session_id, |
| 46 SerializedVarReceiveInput response); | 49 SerializedVarReceiveInput response); |
| 47 void OnMsgReleaseSession(PP_Instance instance, | 50 void OnMsgGetUsableKeyIds(PP_Instance instance, |
| 48 uint32_t promise_id, | 51 uint32_t promise_id, |
| 49 SerializedVarReceiveInput web_session_id); | 52 SerializedVarReceiveInput web_session_id); |
| 53 void OnMsgCloseSession(PP_Instance instance, |
| 54 uint32_t promise_id, |
| 55 SerializedVarReceiveInput web_session_id); |
| 56 void OnMsgRemoveSession(PP_Instance instance, |
| 57 uint32_t promise_id, |
| 58 SerializedVarReceiveInput web_session_id); |
| 50 void OnMsgDecrypt(PP_Instance instance, | 59 void OnMsgDecrypt(PP_Instance instance, |
| 51 const PPPDecryptor_Buffer& encrypted_buffer, | 60 const PPPDecryptor_Buffer& encrypted_buffer, |
| 52 const std::string& serialized_encrypted_block_info); | 61 const std::string& serialized_encrypted_block_info); |
| 53 void OnMsgInitializeAudioDecoder( | 62 void OnMsgInitializeAudioDecoder( |
| 54 PP_Instance instance, | 63 PP_Instance instance, |
| 55 const std::string& decoder_config, | 64 const std::string& decoder_config, |
| 56 const PPPDecryptor_Buffer& extra_data_buffer); | 65 const PPPDecryptor_Buffer& extra_data_buffer); |
| 57 void OnMsgInitializeVideoDecoder( | 66 void OnMsgInitializeVideoDecoder( |
| 58 PP_Instance instance, | 67 PP_Instance instance, |
| 59 const std::string& decoder_config, | 68 const std::string& decoder_config, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 | 81 |
| 73 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; | 82 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; |
| 74 | 83 |
| 75 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); | 84 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); |
| 76 }; | 85 }; |
| 77 | 86 |
| 78 } // namespace proxy | 87 } // namespace proxy |
| 79 } // namespace ppapi | 88 } // namespace ppapi |
| 80 | 89 |
| 81 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | 90 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ |
| OLD | NEW |