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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void KeyAdded(const std::string& key_system, | 61 void KeyAdded(const std::string& key_system, |
62 const std::string& session_id); | 62 const std::string& session_id); |
63 void KeyMessage(const std::string& key_system, | 63 void KeyMessage(const std::string& key_system, |
64 const std::string& session_id, | 64 const std::string& session_id, |
65 pp::Buffer_Dev message, | 65 pp::Buffer_Dev message, |
66 const std::string& default_url); | 66 const std::string& default_url); |
67 void KeyError(const std::string& key_system, | 67 void KeyError(const std::string& key_system, |
68 const std::string& session_id, | 68 const std::string& session_id, |
69 int32_t media_error, | 69 int32_t media_error, |
70 int32_t system_code); | 70 int32_t system_code); |
| 71 |
| 72 // The plugin must not hold a reference to the encrypted buffer resource |
| 73 // provided to Decrypt() when it calls this method. The browser will reuse |
| 74 // the buffer in a subsequent Decrypt() call. |
71 void DeliverBlock(pp::Buffer_Dev decrypted_block, | 75 void DeliverBlock(pp::Buffer_Dev decrypted_block, |
72 const PP_DecryptedBlockInfo& decrypted_block_info); | 76 const PP_DecryptedBlockInfo& decrypted_block_info); |
| 77 |
73 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, | 78 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, |
74 uint32_t request_id, | 79 uint32_t request_id, |
75 bool status); | 80 bool status); |
76 void DecoderDeinitializeDone(PP_DecryptorStreamType decoder_type, | 81 void DecoderDeinitializeDone(PP_DecryptorStreamType decoder_type, |
77 uint32_t request_id); | 82 uint32_t request_id); |
78 void DecoderResetDone(PP_DecryptorStreamType decoder_type, | 83 void DecoderResetDone(PP_DecryptorStreamType decoder_type, |
79 uint32_t request_id); | 84 uint32_t request_id); |
| 85 |
| 86 // The plugin must not hold a reference to the encrypted buffer resource |
| 87 // provided to DecryptAndDecode() when it calls this method. The browser will |
| 88 // reuse the buffer in a subsequent DecryptAndDecode() call. |
80 void DeliverFrame(pp::Buffer_Dev decrypted_frame, | 89 void DeliverFrame(pp::Buffer_Dev decrypted_frame, |
81 const PP_DecryptedFrameInfo& decrypted_frame_info); | 90 const PP_DecryptedFrameInfo& decrypted_frame_info); |
| 91 |
| 92 // The plugin must not hold a reference to the encrypted buffer resource |
| 93 // provided to DecryptAndDecode() when it calls this method. The browser will |
| 94 // reuse the buffer in a subsequent DecryptAndDecode() call. |
82 void DeliverSamples(pp::Buffer_Dev audio_frames, | 95 void DeliverSamples(pp::Buffer_Dev audio_frames, |
83 const PP_DecryptedBlockInfo& decrypted_block_info); | 96 const PP_DecryptedBlockInfo& decrypted_block_info); |
84 | 97 |
85 private: | 98 private: |
86 InstanceHandle associated_instance_; | 99 InstanceHandle associated_instance_; |
87 }; | 100 }; |
88 | 101 |
89 } // namespace pp | 102 } // namespace pp |
90 | 103 |
91 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 104 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
OLD | NEW |