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 #include "ppapi/c/dev/ppb_content_decryption_module_dev.h" |
| 6 #include "ppapi/thunk/thunk.h" |
| 7 #include "ppapi/thunk/enter.h" |
| 8 #include "ppapi/thunk/ppb_instance_api.h" |
| 9 |
| 10 namespace ppapi { |
| 11 namespace thunk { |
| 12 |
| 13 namespace { |
| 14 |
| 15 void NeedKey(PP_Instance instance, |
| 16 PP_Var key_system, |
| 17 PP_Var session_id, |
| 18 PP_Resource init_data) { |
| 19 } |
| 20 |
| 21 void KeyAdded(PP_Instance instance, |
| 22 PP_Var key_system, |
| 23 PP_Var session_id) { |
| 24 } |
| 25 |
| 26 void KeyMessage(PP_Instance instance, |
| 27 PP_Var key_system, |
| 28 PP_Var session_id, |
| 29 PP_Resource message, |
| 30 PP_Var default_url) { |
| 31 } |
| 32 |
| 33 void KeyError(PP_Instance instance, |
| 34 PP_Var key_system, |
| 35 PP_Var session_id, |
| 36 uint16_t media_error, |
| 37 uint16_t system_error) { |
| 38 } |
| 39 |
| 40 void DeliverBlock(PP_Instance instance, |
| 41 PP_Resource decrypted_block, |
| 42 PP_CompletionCallback callback) { |
| 43 } |
| 44 |
| 45 void DeliverFrame(PP_Instance instance, |
| 46 PP_Resource decrypted_frame, |
| 47 PP_CompletionCallback callback) { |
| 48 } |
| 49 |
| 50 void DeliverSamples(PP_Instance instance, |
| 51 PP_Resource decrypted_samples, |
| 52 PP_CompletionCallback callback) { |
| 53 } |
| 54 |
| 55 const PPB_ContentDecryptionModule_Dev g_ppb_decryption_thunk = { |
| 56 &NeedKey, |
| 57 &KeyAdded, |
| 58 &KeyMessage, |
| 59 &KeyError, |
| 60 &DeliverBlock, |
| 61 &DeliverFrame, |
| 62 &DeliverSamples |
| 63 }; |
| 64 |
| 65 } // namespace |
| 66 |
| 67 const PPB_ContentDecryptionModule_Dev* |
| 68 GetPPB_ContentDecryptionModule_Dev_0_1_Thunk() { |
| 69 return &g_ppb_decryption_thunk; |
| 70 } |
| 71 |
| 72 } // namespace thunk |
| 73 } // namespace ppapi |
OLD | NEW |