OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void OnLoadSessionUpdated(); | 93 void OnLoadSessionUpdated(); |
94 | 94 |
95 // ContentDecryptionModule callbacks. | 95 // ContentDecryptionModule callbacks. |
96 void OnSessionMessage(const std::string& session_id, | 96 void OnSessionMessage(const std::string& session_id, |
97 ContentDecryptionModule::MessageType message_type, | 97 ContentDecryptionModule::MessageType message_type, |
98 const std::vector<uint8_t>& message); | 98 const std::vector<uint8_t>& message); |
99 void OnSessionKeysChange(const std::string& session_id, | 99 void OnSessionKeysChange(const std::string& session_id, |
100 bool has_additional_usable_key, | 100 bool has_additional_usable_key, |
101 CdmKeysInfo keys_info); | 101 CdmKeysInfo keys_info); |
102 void OnSessionClosed(const std::string& session_id); | 102 void OnSessionClosed(const std::string& session_id); |
| 103 void OnSessionExpirationUpdate(const std::string& session_id, |
| 104 base::Time new_expiry_time); |
103 | 105 |
104 // Handle the success/failure of a promise. These methods are responsible for | 106 // Handle the success/failure of a promise. These methods are responsible for |
105 // calling |host_| to resolve or reject the promise. | 107 // calling |host_| to resolve or reject the promise. |
106 void OnSessionCreated(uint32_t promise_id, const std::string& session_id); | 108 void OnSessionCreated(uint32_t promise_id, const std::string& session_id); |
107 void OnSessionLoaded(uint32_t promise_id, const std::string& session_id); | 109 void OnSessionLoaded(uint32_t promise_id, const std::string& session_id); |
108 void OnPromiseResolved(uint32_t promise_id); | 110 void OnPromiseResolved(uint32_t promise_id); |
109 void OnPromiseFailed(uint32_t promise_id, | 111 void OnPromiseFailed(uint32_t promise_id, |
110 CdmPromise::Exception exception_code, | 112 CdmPromise::Exception exception_code, |
111 uint32_t system_code, | 113 uint32_t system_code, |
112 const std::string& error_message); | 114 const std::string& error_message); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 220 |
219 bool is_running_output_protection_test_; | 221 bool is_running_output_protection_test_; |
220 bool is_running_platform_verification_test_; | 222 bool is_running_platform_verification_test_; |
221 | 223 |
222 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 224 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
223 }; | 225 }; |
224 | 226 |
225 } // namespace media | 227 } // namespace media |
226 | 228 |
227 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 229 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
OLD | NEW |