OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "webkit/media/crypto/ppapi/clear_key_cdm.h" | 5 #include "webkit/media/crypto/ppapi/clear_key_cdm.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 return cdm::kErrorNoKey; | 209 return cdm::kErrorNoKey; |
210 | 210 |
211 DCHECK(buffer); | 211 DCHECK(buffer); |
212 int data_size = buffer->GetDataSize(); | 212 int data_size = buffer->GetDataSize(); |
213 decrypted_buffer->data = AllocateAndCopy(buffer->GetData(), data_size); | 213 decrypted_buffer->data = AllocateAndCopy(buffer->GetData(), data_size); |
214 decrypted_buffer->data_size = data_size; | 214 decrypted_buffer->data_size = data_size; |
215 decrypted_buffer->timestamp = buffer->GetTimestamp().InMicroseconds(); | 215 decrypted_buffer->timestamp = buffer->GetTimestamp().InMicroseconds(); |
216 return cdm::kSuccess; | 216 return cdm::kSuccess; |
217 } | 217 } |
218 | 218 |
| 219 cdm::Status ClearKeyCdm::InitializeVideoDecoder( |
| 220 const cdm::VideoDeocderConfig& video_decoder_config) { |
| 221 return cdm::kErrorUnknown; |
| 222 } |
| 223 |
| 224 cdm::Status ClearKeyCdm::DecryptAndDecodeVideo( |
| 225 const cdm::InputBuffer& encrypted_buffer, |
| 226 cdm::VideoFrame* video_frame) { |
| 227 NOTIMPLEMENTED(); |
| 228 return cdm::kErrorUnknown; |
| 229 } |
| 230 |
| 231 cdm::Status ClearKeyCdm::ResetVideoDecoder() { |
| 232 NOTIMPLEMENTED(); |
| 233 return cdm::kErrorUnknown; |
| 234 } |
| 235 |
| 236 cdm::Status ClearKeyCdm::StopVideoDecoder() { |
| 237 NOTIMPLEMENTED(); |
| 238 return cdm::kErrorUnknown; |
| 239 } |
| 240 |
219 } // namespace webkit_media | 241 } // namespace webkit_media |
OLD | NEW |