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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // to the browser. | 74 // to the browser. |
75 void PromiseResolved(uint32_t promise_id); | 75 void PromiseResolved(uint32_t promise_id); |
76 void PromiseResolvedWithSession(uint32_t promise_id, | 76 void PromiseResolvedWithSession(uint32_t promise_id, |
77 const std::string& web_session_id); | 77 const std::string& web_session_id); |
78 void PromiseRejected(uint32_t promise_id, | 78 void PromiseRejected(uint32_t promise_id, |
79 PP_CdmExceptionCode exception_code, | 79 PP_CdmExceptionCode exception_code, |
80 uint32_t system_code, | 80 uint32_t system_code, |
81 const std::string& error_description); | 81 const std::string& error_description); |
82 void SessionMessage(const std::string& web_session_id, | 82 void SessionMessage(const std::string& web_session_id, |
83 PP_CdmMessageType message_type, | 83 PP_CdmMessageType message_type, |
84 pp::VarArrayBuffer message); | 84 pp::VarArrayBuffer message, |
| 85 const std::string& legacy_destination_url); |
85 void SessionKeysChange(const std::string& web_session_id, | 86 void SessionKeysChange(const std::string& web_session_id, |
86 bool has_additional_usable_key, | 87 bool has_additional_usable_key, |
87 const std::vector<PP_KeyInformation>& key_information); | 88 const std::vector<PP_KeyInformation>& key_information); |
88 void SessionExpirationChange(const std::string& web_session_id, | 89 void SessionExpirationChange(const std::string& web_session_id, |
89 PP_Time new_expiry_time); | 90 PP_Time new_expiry_time); |
90 void SessionClosed(const std::string& web_session_id); | 91 void SessionClosed(const std::string& web_session_id); |
91 void SessionError(const std::string& web_session_id, | 92 void SessionError(const std::string& web_session_id, |
92 PP_CdmExceptionCode exception_code, | 93 PP_CdmExceptionCode exception_code, |
93 uint32_t system_code, | 94 uint32_t system_code, |
94 const std::string& error_description); | 95 const std::string& error_description); |
(...skipping 24 matching lines...) Expand all Loading... |
119 void DeliverSamples(pp::Buffer_Dev audio_frames, | 120 void DeliverSamples(pp::Buffer_Dev audio_frames, |
120 const PP_DecryptedSampleInfo& decrypted_sample_info); | 121 const PP_DecryptedSampleInfo& decrypted_sample_info); |
121 | 122 |
122 private: | 123 private: |
123 InstanceHandle associated_instance_; | 124 InstanceHandle associated_instance_; |
124 }; | 125 }; |
125 | 126 |
126 } // namespace pp | 127 } // namespace pp |
127 | 128 |
128 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 129 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
OLD | NEW |