Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: webkit/media/crypto/ppapi/clear_key_cdm.cc

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments with the exception of renaming Deinit Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 decrypted_block->set_timestamp(buffer->GetTimestamp().InMicroseconds()); 232 decrypted_block->set_timestamp(buffer->GetTimestamp().InMicroseconds());
233 return cdm::kSuccess; 233 return cdm::kSuccess;
234 } 234 }
235 235
236 cdm::Status ClearKeyCdm::InitializeVideoDecoder( 236 cdm::Status ClearKeyCdm::InitializeVideoDecoder(
237 const cdm::VideoDecoderConfig& video_decoder_config) { 237 const cdm::VideoDecoderConfig& video_decoder_config) {
238 NOTIMPLEMENTED(); 238 NOTIMPLEMENTED();
239 return cdm::kSessionError; 239 return cdm::kSessionError;
240 } 240 }
241 241
242 void ClearKeyCdm::ResetDecoder(cdm::StreamType) {
243 NOTIMPLEMENTED();
244 }
245
246 void ClearKeyCdm::DeinitializeDecoder(cdm::StreamType) {
247 NOTIMPLEMENTED();
248 }
249
242 cdm::Status ClearKeyCdm::DecryptAndDecodeFrame( 250 cdm::Status ClearKeyCdm::DecryptAndDecodeFrame(
243 const cdm::InputBuffer& encrypted_buffer, 251 const cdm::InputBuffer& encrypted_buffer,
244 cdm::VideoFrame* video_frame) { 252 cdm::VideoFrame* video_frame) {
245 NOTIMPLEMENTED(); 253 NOTIMPLEMENTED();
246 return cdm::kDecryptError; 254 return cdm::kDecryptError;
247 } 255 }
248 256
249 void ClearKeyCdm::ResetVideoDecoder() {
250 NOTIMPLEMENTED();
251 }
252
253 void ClearKeyCdm::StopVideoDecoder() {
254 NOTIMPLEMENTED();
255 }
256
257 } // namespace webkit_media 257 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/media/crypto/ppapi/clear_key_cdm.h ('k') | webkit/media/crypto/ppapi/content_decryption_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698