Chromium Code Reviews| 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; | |
|
scherkus (not reviewing)
2012/09/01 12:33:08
add NOTIMPLEMENTED() so we get some logging
xhwang
2012/09/01 13:05:24
Done.
| |
| 222 } | |
| 223 | |
| 224 cdm::Status ClearKeyCdm::DecryptAndDecodeVideo( | |
| 225 const cdm::InputBuffer& encrypted_buffer, | |
| 226 cdm::VideoFrame* video_frame) { | |
| 227 return cdm::kErrorUnknown; | |
| 228 } | |
| 229 | |
| 230 cdm::Status ClearKeyCdm::ResetVideoDecoder() { | |
| 231 return cdm::kErrorUnknown; | |
| 232 } | |
| 233 | |
| 234 cdm::Status ClearKeyCdm::StopVideoDecoder() { | |
| 235 return cdm::kErrorUnknown; | |
| 236 } | |
| 237 | |
| 219 } // namespace webkit_media | 238 } // namespace webkit_media |
| OLD | NEW |