| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_MEDIA_CDM_cast_cdm_H_ | 5 #ifndef CHROMECAST_MEDIA_CDM_cast_cdm_H_ |
| 6 #define CHROMECAST_MEDIA_CDM_cast_cdm_H_ | 6 #define CHROMECAST_MEDIA_CDM_cast_cdm_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 uint32_t system_code) = 0; | 70 uint32_t system_code) = 0; |
| 71 | 71 |
| 72 // ::media::MediaKeys implementation. | 72 // ::media::MediaKeys implementation. |
| 73 ::media::CdmContext* GetCdmContext() override; | 73 ::media::CdmContext* GetCdmContext() override; |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 ~CastCdm() override; | 76 ~CastCdm() override; |
| 77 | 77 |
| 78 void OnSessionMessage(const std::string& session_id, | 78 void OnSessionMessage(const std::string& session_id, |
| 79 const std::vector<uint8_t>& message, | 79 const std::vector<uint8_t>& message, |
| 80 const GURL& destination_url, | |
| 81 ::media::MediaKeys::MessageType message_type); | 80 ::media::MediaKeys::MessageType message_type); |
| 82 void OnSessionClosed(const std::string& session_id); | 81 void OnSessionClosed(const std::string& session_id); |
| 83 void OnSessionKeysChange(const std::string& session_id, | 82 void OnSessionKeysChange(const std::string& session_id, |
| 84 bool newly_usable_keys, | 83 bool newly_usable_keys, |
| 85 ::media::CdmKeysInfo keys_info); | 84 ::media::CdmKeysInfo keys_info); |
| 86 | 85 |
| 87 void KeyIdAndKeyPairsToInfo(const ::media::KeyIdAndKeyPairs& keys, | 86 void KeyIdAndKeyPairsToInfo(const ::media::KeyIdAndKeyPairs& keys, |
| 88 ::media::CdmKeysInfo* key_info); | 87 ::media::CdmKeysInfo* key_info); |
| 89 | 88 |
| 90 private: | 89 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 104 | 103 |
| 105 base::ThreadChecker thread_checker_; | 104 base::ThreadChecker thread_checker_; |
| 106 | 105 |
| 107 DISALLOW_COPY_AND_ASSIGN(CastCdm); | 106 DISALLOW_COPY_AND_ASSIGN(CastCdm); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace media | 109 } // namespace media |
| 111 } // namespace chromecast | 110 } // namespace chromecast |
| 112 | 111 |
| 113 #endif // CHROMECAST_MEDIA_CDM_cast_cdm_H_ | 112 #endif // CHROMECAST_MEDIA_CDM_cast_cdm_H_ |
| OLD | NEW |