| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 private: | 29 private: |
| 30 // InterfaceProxy implementation. | 30 // InterfaceProxy implementation. |
| 31 virtual bool OnMessageReceived(const IPC::Message& msg); | 31 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 32 | 32 |
| 33 // Message handlers. | 33 // Message handlers. |
| 34 void OnMsgInitialize(PP_Instance instance, | 34 void OnMsgInitialize(PP_Instance instance, |
| 35 SerializedVarReceiveInput key_system); | 35 SerializedVarReceiveInput key_system); |
| 36 void OnMsgSetServerCertificate(PP_Instance instance, | 36 void OnMsgSetServerCertificate(PP_Instance instance, |
| 37 uint32_t promise_id, | 37 uint32_t promise_id, |
| 38 std::vector<uint8_t> server_certificate); | 38 std::vector<uint8_t> server_certificate); |
| 39 void OnMsgCreateSession(PP_Instance instance, | 39 void OnMsgCreateSessionAndGenerateRequest( |
| 40 uint32_t promise_id, | 40 PP_Instance instance, |
| 41 SerializedVarReceiveInput init_data_type, | 41 uint32_t promise_id, |
| 42 SerializedVarReceiveInput init_data, | 42 PP_SessionType session_type, |
| 43 PP_SessionType session_type); | 43 SerializedVarReceiveInput init_data_type, |
| 44 SerializedVarReceiveInput init_data); |
| 44 void OnMsgLoadSession(PP_Instance instance, | 45 void OnMsgLoadSession(PP_Instance instance, |
| 45 uint32_t promise_id, | 46 uint32_t promise_id, |
| 47 PP_SessionType session_type, |
| 46 SerializedVarReceiveInput web_session_id); | 48 SerializedVarReceiveInput web_session_id); |
| 47 void OnMsgUpdateSession(PP_Instance instance, | 49 void OnMsgUpdateSession(PP_Instance instance, |
| 48 uint32_t promise_id, | 50 uint32_t promise_id, |
| 49 SerializedVarReceiveInput web_session_id, | 51 SerializedVarReceiveInput web_session_id, |
| 50 SerializedVarReceiveInput response); | 52 SerializedVarReceiveInput response); |
| 51 void OnMsgCloseSession(PP_Instance instance, | 53 void OnMsgCloseSession(PP_Instance instance, |
| 52 uint32_t promise_id, | 54 uint32_t promise_id, |
| 53 const std::string& web_session_id); | 55 const std::string& web_session_id); |
| 54 void OnMsgRemoveSession(PP_Instance instance, | 56 void OnMsgRemoveSession(PP_Instance instance, |
| 55 uint32_t promise_id, | 57 uint32_t promise_id, |
| 56 const std::string& web_session_id); | 58 const std::string& web_session_id); |
| 57 void OnMsgGetUsableKeyIds(PP_Instance instance, | |
| 58 uint32_t promise_id, | |
| 59 const std::string& web_session_id); | |
| 60 void OnMsgDecrypt(PP_Instance instance, | 59 void OnMsgDecrypt(PP_Instance instance, |
| 61 const PPPDecryptor_Buffer& encrypted_buffer, | 60 const PPPDecryptor_Buffer& encrypted_buffer, |
| 62 const std::string& serialized_encrypted_block_info); | 61 const std::string& serialized_encrypted_block_info); |
| 63 void OnMsgInitializeAudioDecoder( | 62 void OnMsgInitializeAudioDecoder( |
| 64 PP_Instance instance, | 63 PP_Instance instance, |
| 65 const std::string& decoder_config, | 64 const std::string& decoder_config, |
| 66 const PPPDecryptor_Buffer& extra_data_buffer); | 65 const PPPDecryptor_Buffer& extra_data_buffer); |
| 67 void OnMsgInitializeVideoDecoder( | 66 void OnMsgInitializeVideoDecoder( |
| 68 PP_Instance instance, | 67 PP_Instance instance, |
| 69 const std::string& decoder_config, | 68 const std::string& decoder_config, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 82 | 81 |
| 83 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; | 82 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; |
| 84 | 83 |
| 85 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); | 84 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace proxy | 87 } // namespace proxy |
| 89 } // namespace ppapi | 88 } // namespace ppapi |
| 90 | 89 |
| 91 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | 90 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ |
| OLD | NEW |