| 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_CLEAR_KEY_CDM_H_ | 5 #ifndef MEDIA_CDM_PPAPI_CLEAR_KEY_CDM_H_ |
| 6 #define MEDIA_CDM_PPAPI_CLEAR_KEY_CDM_H_ | 6 #define MEDIA_CDM_PPAPI_CLEAR_KEY_CDM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const cdm::VideoDecoderConfig& video_decoder_config) OVERRIDE; | 51 const cdm::VideoDecoderConfig& video_decoder_config) OVERRIDE; |
| 52 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) OVERRIDE; | 52 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) OVERRIDE; |
| 53 virtual void ResetDecoder(cdm::StreamType decoder_type) OVERRIDE; | 53 virtual void ResetDecoder(cdm::StreamType decoder_type) OVERRIDE; |
| 54 virtual cdm::Status DecryptAndDecodeFrame( | 54 virtual cdm::Status DecryptAndDecodeFrame( |
| 55 const cdm::InputBuffer& encrypted_buffer, | 55 const cdm::InputBuffer& encrypted_buffer, |
| 56 cdm::VideoFrame* video_frame) OVERRIDE; | 56 cdm::VideoFrame* video_frame) OVERRIDE; |
| 57 virtual cdm::Status DecryptAndDecodeSamples( | 57 virtual cdm::Status DecryptAndDecodeSamples( |
| 58 const cdm::InputBuffer& encrypted_buffer, | 58 const cdm::InputBuffer& encrypted_buffer, |
| 59 cdm::AudioFrames* audio_frames) OVERRIDE; | 59 cdm::AudioFrames* audio_frames) OVERRIDE; |
| 60 virtual void Destroy() OVERRIDE; | 60 virtual void Destroy() OVERRIDE; |
| 61 virtual void OnPlatformChallengeResponse( |
| 62 const cdm::PlatformChallengeResponse& response) OVERRIDE; |
| 63 virtual void OnQueryOutputProtectionStatus( |
| 64 uint32_t link_mask, uint32_t output_protection_mask) OVERRIDE; |
| 61 | 65 |
| 62 private: | 66 private: |
| 63 // TODO(xhwang): After we removed DecryptorClient. We probably can also remove | 67 // TODO(xhwang): After we removed DecryptorClient. We probably can also remove |
| 64 // this Client class as well. Investigate this possibility. | 68 // this Client class as well. Investigate this possibility. |
| 65 class Client { | 69 class Client { |
| 66 public: | 70 public: |
| 67 enum Status { | 71 enum Status { |
| 68 kKeyAdded, | 72 kKeyAdded, |
| 69 kKeyError, | 73 kKeyError, |
| 70 kKeyMessage | 74 kKeyMessage |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER | 161 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER |
| 158 | 162 |
| 159 scoped_ptr<CdmVideoDecoder> video_decoder_; | 163 scoped_ptr<CdmVideoDecoder> video_decoder_; |
| 160 | 164 |
| 161 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 165 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 } // namespace media | 168 } // namespace media |
| 165 | 169 |
| 166 #endif // MEDIA_CDM_PPAPI_CLEAR_KEY_CDM_H_ | 170 #endif // MEDIA_CDM_PPAPI_CLEAR_KEY_CDM_H_ |
| OLD | NEW |