| 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 // From private/ppb_content_decryptor_private.idl, | 5 // From private/ppb_content_decryptor_private.idl, |
| 6 // modified Fri Dec 6 12:16:22 2013. | 6 // modified Wed Jan 8 15:53:58 2014. |
| 7 | 7 |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 9 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 10 #include "ppapi/shared_impl/tracked_callback.h" | 10 #include "ppapi/shared_impl/tracked_callback.h" |
| 11 #include "ppapi/thunk/enter.h" | 11 #include "ppapi/thunk/enter.h" |
| 12 #include "ppapi/thunk/ppb_instance_api.h" | 12 #include "ppapi/thunk/ppb_instance_api.h" |
| 13 #include "ppapi/thunk/resource_creation_api.h" | 13 #include "ppapi/thunk/resource_creation_api.h" |
| 14 #include "ppapi/thunk/thunk.h" | 14 #include "ppapi/thunk/thunk.h" |
| 15 | 15 |
| 16 namespace ppapi { | 16 namespace ppapi { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const struct PP_DecryptedSampleInfo* decrypted_sample_info) { | 138 const struct PP_DecryptedSampleInfo* decrypted_sample_info) { |
| 139 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverSamples()"; | 139 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverSamples()"; |
| 140 EnterInstance enter(instance); | 140 EnterInstance enter(instance); |
| 141 if (enter.failed()) | 141 if (enter.failed()) |
| 142 return; | 142 return; |
| 143 enter.functions()->DeliverSamples(instance, | 143 enter.functions()->DeliverSamples(instance, |
| 144 audio_frames, | 144 audio_frames, |
| 145 decrypted_sample_info); | 145 decrypted_sample_info); |
| 146 } | 146 } |
| 147 | 147 |
| 148 const PPB_ContentDecryptor_Private_0_9 | 148 const PPB_ContentDecryptor_Private_1_0 |
| 149 g_ppb_contentdecryptor_private_thunk_0_9 = { | 149 g_ppb_contentdecryptor_private_thunk_1_0 = { |
| 150 &SessionCreated, | 150 &SessionCreated, |
| 151 &SessionMessage, | 151 &SessionMessage, |
| 152 &SessionReady, | 152 &SessionReady, |
| 153 &SessionClosed, | 153 &SessionClosed, |
| 154 &SessionError, | 154 &SessionError, |
| 155 &DeliverBlock, | 155 &DeliverBlock, |
| 156 &DecoderInitializeDone, | 156 &DecoderInitializeDone, |
| 157 &DecoderDeinitializeDone, | 157 &DecoderDeinitializeDone, |
| 158 &DecoderResetDone, | 158 &DecoderResetDone, |
| 159 &DeliverFrame, | 159 &DeliverFrame, |
| 160 &DeliverSamples | 160 &DeliverSamples |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace | 163 } // namespace |
| 164 | 164 |
| 165 const PPB_ContentDecryptor_Private_0_9* | 165 const PPB_ContentDecryptor_Private_1_0* |
| 166 GetPPB_ContentDecryptor_Private_0_9_Thunk() { | 166 GetPPB_ContentDecryptor_Private_1_0_Thunk() { |
| 167 return &g_ppb_contentdecryptor_private_thunk_0_9; | 167 return &g_ppb_contentdecryptor_private_thunk_1_0; |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace thunk | 170 } // namespace thunk |
| 171 } // namespace ppapi | 171 } // namespace ppapi |
| OLD | NEW |