| 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_CDM_ADAPTER_H_ | 5 #ifndef MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| 6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void OnSessionMessage(const char* session_id, | 114 void OnSessionMessage(const char* session_id, |
| 115 uint32_t session_id_size, | 115 uint32_t session_id_size, |
| 116 cdm::MessageType message_type, | 116 cdm::MessageType message_type, |
| 117 const char* message, | 117 const char* message, |
| 118 uint32_t message_size) override; | 118 uint32_t message_size) override; |
| 119 void OnSessionKeysChange(const char* session_id, | 119 void OnSessionKeysChange(const char* session_id, |
| 120 uint32_t session_id_size, | 120 uint32_t session_id_size, |
| 121 bool has_additional_usable_key, | 121 bool has_additional_usable_key, |
| 122 const cdm::KeyInformation* keys_info, | 122 const cdm::KeyInformation* keys_info, |
| 123 uint32_t keys_info_count) override; | 123 uint32_t keys_info_count) override; |
| 124 void OnLegacySessionError(const char* session_id, |
| 125 uint32_t session_id_size, |
| 126 cdm::Error error, |
| 127 uint32_t system_code, |
| 128 const char* error_message, |
| 129 uint32_t error_message_size) override; |
| 124 | 130 |
| 125 // cdm::Host_6 implementation. | 131 // cdm::Host_6 implementation. |
| 126 void OnResolveKeyIdsPromise(uint32_t promise_id, | 132 void OnResolveKeyIdsPromise(uint32_t promise_id, |
| 127 const cdm::BinaryData* usable_key_ids, | 133 const cdm::BinaryData* usable_key_ids, |
| 128 uint32_t usable_key_ids_size) override; | 134 uint32_t usable_key_ids_size) override; |
| 129 void OnSessionMessage(const char* session_id, | 135 void OnSessionMessage(const char* session_id, |
| 130 uint32_t session_id_size, | 136 uint32_t session_id_size, |
| 131 const char* message, | 137 const char* message, |
| 132 uint32_t message_size, | 138 uint32_t message_size, |
| 133 const char* destination_url, | 139 const char* destination_url, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 286 |
| 281 uint32_t last_read_file_size_kb_; | 287 uint32_t last_read_file_size_kb_; |
| 282 bool file_size_uma_reported_; | 288 bool file_size_uma_reported_; |
| 283 | 289 |
| 284 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 290 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
| 285 }; | 291 }; |
| 286 | 292 |
| 287 } // namespace media | 293 } // namespace media |
| 288 | 294 |
| 289 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 295 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| OLD | NEW |