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 #include "ppapi/cpp/private/content_decryptor_private.h" | 5 #include "ppapi/cpp/private/content_decryptor_private.h" |
6 | 6 |
7 #include <cstring> // memcpy | 7 #include <cstring> // memcpy |
8 | 8 |
9 #include "ppapi/c/ppb_var.h" | 9 #include "ppapi/c/ppb_var.h" |
10 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 10 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 if (has_interface<PPB_ContentDecryptor_Private>()) { | 323 if (has_interface<PPB_ContentDecryptor_Private>()) { |
324 get_interface<PPB_ContentDecryptor_Private>()->DeliverFrame( | 324 get_interface<PPB_ContentDecryptor_Private>()->DeliverFrame( |
325 associated_instance_.pp_instance(), | 325 associated_instance_.pp_instance(), |
326 decrypted_frame.pp_resource(), | 326 decrypted_frame.pp_resource(), |
327 &decrypted_frame_info); | 327 &decrypted_frame_info); |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 void ContentDecryptor_Private::DeliverSamples( | 331 void ContentDecryptor_Private::DeliverSamples( |
332 pp::Buffer_Dev audio_frames, | 332 pp::Buffer_Dev audio_frames, |
333 const PP_DecryptedBlockInfo& decrypted_block_info) { | 333 const PP_DecryptedSampleInfo& decrypted_sample_info) { |
334 if (has_interface<PPB_ContentDecryptor_Private>()) { | 334 if (has_interface<PPB_ContentDecryptor_Private>()) { |
335 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples( | 335 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples( |
336 associated_instance_.pp_instance(), | 336 associated_instance_.pp_instance(), |
337 audio_frames.pp_resource(), | 337 audio_frames.pp_resource(), |
338 &decrypted_block_info); | 338 &decrypted_sample_info); |
339 } | 339 } |
340 } | 340 } |
341 | 341 |
342 } // namespace pp | 342 } // namespace pp |
OLD | NEW |