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_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
7 | 7 |
8 #include "ppapi/c/private/pp_content_decryptor.h" | 8 #include "ppapi/c/private/pp_content_decryptor.h" |
9 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 9 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
10 #include "ppapi/c/private/ppp_content_decryptor_private.h" | 10 #include "ppapi/c/private/ppp_content_decryptor_private.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // The plugin must not hold a reference to the encrypted buffer resource | 87 // The plugin must not hold a reference to the encrypted buffer resource |
88 // provided to DecryptAndDecode() when it calls this method. The browser will | 88 // provided to DecryptAndDecode() when it calls this method. The browser will |
89 // reuse the buffer in a subsequent DecryptAndDecode() call. | 89 // reuse the buffer in a subsequent DecryptAndDecode() call. |
90 void DeliverFrame(pp::Buffer_Dev decrypted_frame, | 90 void DeliverFrame(pp::Buffer_Dev decrypted_frame, |
91 const PP_DecryptedFrameInfo& decrypted_frame_info); | 91 const PP_DecryptedFrameInfo& decrypted_frame_info); |
92 | 92 |
93 // The plugin must not hold a reference to the encrypted buffer resource | 93 // The plugin must not hold a reference to the encrypted buffer resource |
94 // provided to DecryptAndDecode() when it calls this method. The browser will | 94 // provided to DecryptAndDecode() when it calls this method. The browser will |
95 // reuse the buffer in a subsequent DecryptAndDecode() call. | 95 // reuse the buffer in a subsequent DecryptAndDecode() call. |
96 void DeliverSamples(pp::Buffer_Dev audio_frames, | 96 void DeliverSamples(pp::Buffer_Dev audio_frames, |
97 const PP_DecryptedBlockInfo& decrypted_block_info); | 97 const PP_DecryptedSampleInfo& decrypted_sample_info); |
98 | 98 |
99 private: | 99 private: |
100 InstanceHandle associated_instance_; | 100 InstanceHandle associated_instance_; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace pp | 103 } // namespace pp |
104 | 104 |
105 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 105 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
OLD | NEW |