| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BASE_CDM_KEY_INFORMATION_H_ | 5 #ifndef MEDIA_BASE_CDM_KEY_INFORMATION_H_ |
| 6 #define MEDIA_BASE_CDM_KEY_INFORMATION_H_ | 6 #define MEDIA_BASE_CDM_KEY_INFORMATION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 CdmKeyInformation(const std::string& key_id, | 36 CdmKeyInformation(const std::string& key_id, |
| 37 KeyStatus status, | 37 KeyStatus status, |
| 38 uint32_t system_code); | 38 uint32_t system_code); |
| 39 CdmKeyInformation(const uint8_t* key_id_data, | 39 CdmKeyInformation(const uint8_t* key_id_data, |
| 40 size_t key_id_length, | 40 size_t key_id_length, |
| 41 KeyStatus status, | 41 KeyStatus status, |
| 42 uint32_t system_code); | 42 uint32_t system_code); |
| 43 CdmKeyInformation(const CdmKeyInformation& other); | 43 CdmKeyInformation(const CdmKeyInformation& other); |
| 44 ~CdmKeyInformation(); | 44 ~CdmKeyInformation(); |
| 45 | 45 |
| 46 static std::string KeyStatusToString(KeyStatus key_status); |
| 47 |
| 46 std::vector<uint8_t> key_id; | 48 std::vector<uint8_t> key_id; |
| 47 KeyStatus status; | 49 KeyStatus status; |
| 48 uint32_t system_code; | 50 uint32_t system_code; |
| 49 }; | 51 }; |
| 50 | 52 |
| 53 // For logging use only. |
| 54 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, |
| 55 const CdmKeyInformation& info); |
| 56 |
| 51 } // namespace media | 57 } // namespace media |
| 52 | 58 |
| 53 #endif // MEDIA_BASE_CDM_KEY_INFORMATION_H_ | 59 #endif // MEDIA_BASE_CDM_KEY_INFORMATION_H_ |
| OLD | NEW |