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 Tue Sep 17 11:31:05 2013. | 6 // modified Thu Oct 10 14:49:51 2013. |
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 if (enter.failed()) | 116 if (enter.failed()) |
117 return; | 117 return; |
118 enter.functions()->DeliverFrame(instance, | 118 enter.functions()->DeliverFrame(instance, |
119 decrypted_frame, | 119 decrypted_frame, |
120 decrypted_frame_info); | 120 decrypted_frame_info); |
121 } | 121 } |
122 | 122 |
123 void DeliverSamples( | 123 void DeliverSamples( |
124 PP_Instance instance, | 124 PP_Instance instance, |
125 PP_Resource audio_frames, | 125 PP_Resource audio_frames, |
126 const struct PP_DecryptedBlockInfo* decrypted_block_info) { | 126 const struct PP_DecryptedSampleInfo* decrypted_sample_info) { |
127 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverSamples()"; | 127 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverSamples()"; |
128 EnterInstance enter(instance); | 128 EnterInstance enter(instance); |
129 if (enter.failed()) | 129 if (enter.failed()) |
130 return; | 130 return; |
131 enter.functions()->DeliverSamples(instance, | 131 enter.functions()->DeliverSamples(instance, |
132 audio_frames, | 132 audio_frames, |
133 decrypted_block_info); | 133 decrypted_sample_info); |
134 } | 134 } |
135 | 135 |
136 const PPB_ContentDecryptor_Private_0_7 | 136 const PPB_ContentDecryptor_Private_0_7 |
137 g_ppb_contentdecryptor_private_thunk_0_7 = { | 137 g_ppb_contentdecryptor_private_thunk_0_7 = { |
138 &KeyAdded, | 138 &KeyAdded, |
139 &KeyMessage, | 139 &KeyMessage, |
140 &KeyError, | 140 &KeyError, |
141 &DeliverBlock, | 141 &DeliverBlock, |
142 &DecoderInitializeDone, | 142 &DecoderInitializeDone, |
143 &DecoderDeinitializeDone, | 143 &DecoderDeinitializeDone, |
144 &DecoderResetDone, | 144 &DecoderResetDone, |
145 &DeliverFrame, | 145 &DeliverFrame, |
146 &DeliverSamples | 146 &DeliverSamples |
147 }; | 147 }; |
148 | 148 |
149 } // namespace | 149 } // namespace |
150 | 150 |
151 const PPB_ContentDecryptor_Private_0_7* | 151 const PPB_ContentDecryptor_Private_0_7* |
152 GetPPB_ContentDecryptor_Private_0_7_Thunk() { | 152 GetPPB_ContentDecryptor_Private_0_7_Thunk() { |
153 return &g_ppb_contentdecryptor_private_thunk_0_7; | 153 return &g_ppb_contentdecryptor_private_thunk_0_7; |
154 } | 154 } |
155 | 155 |
156 } // namespace thunk | 156 } // namespace thunk |
157 } // namespace ppapi | 157 } // namespace ppapi |
OLD | NEW |