| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual ~CdmAdapter(); | 44 virtual ~CdmAdapter(); |
| 45 | 45 |
| 46 // pp::Instance implementation. | 46 // pp::Instance implementation. |
| 47 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { | 47 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { |
| 48 return true; | 48 return true; |
| 49 } | 49 } |
| 50 | 50 |
| 51 // PPP_ContentDecryptor_Private implementation. | 51 // PPP_ContentDecryptor_Private implementation. |
| 52 // Note: Results of calls to these methods must be reported through the | 52 // Note: Results of calls to these methods must be reported through the |
| 53 // PPB_ContentDecryptor_Private interface. | 53 // PPB_ContentDecryptor_Private interface. |
| 54 void Initialize(const std::string& key_system, | 54 void Initialize(uint32_t promise_id, |
| 55 const std::string& key_system, |
| 55 bool allow_distinctive_identifier, | 56 bool allow_distinctive_identifier, |
| 56 bool allow_persistent_state) override; | 57 bool allow_persistent_state) override; |
| 57 void SetServerCertificate(uint32_t promise_id, | 58 void SetServerCertificate(uint32_t promise_id, |
| 58 pp::VarArrayBuffer server_certificate) override; | 59 pp::VarArrayBuffer server_certificate) override; |
| 59 void CreateSessionAndGenerateRequest(uint32_t promise_id, | 60 void CreateSessionAndGenerateRequest(uint32_t promise_id, |
| 60 PP_SessionType session_type, | 61 PP_SessionType session_type, |
| 61 PP_InitDataType init_data_type, | 62 PP_InitDataType init_data_type, |
| 62 pp::VarArrayBuffer init_data) override; | 63 pp::VarArrayBuffer init_data) override; |
| 63 void LoadSession(uint32_t promise_id, | 64 void LoadSession(uint32_t promise_id, |
| 64 PP_SessionType session_type, | 65 PP_SessionType session_type, |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 282 |
| 282 uint32_t last_read_file_size_kb_; | 283 uint32_t last_read_file_size_kb_; |
| 283 bool file_size_uma_reported_; | 284 bool file_size_uma_reported_; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 286 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace media | 289 } // namespace media |
| 289 | 290 |
| 290 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 291 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| OLD | NEW |