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

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

Issue 10917308: Remove the checksum/HMAC code from the decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix proxy_decryptor_unittest. Created 8 years, 3 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 13 matching lines...) Expand all
24 subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes; 24 subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes;
25 subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes; 25 subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes;
26 subsamples.push_back(subsample); 26 subsamples.push_back(subsample);
27 } 27 }
28 28
29 scoped_ptr<media::DecryptConfig> decrypt_config(new media::DecryptConfig( 29 scoped_ptr<media::DecryptConfig> decrypt_config(new media::DecryptConfig(
30 std::string(reinterpret_cast<const char*>(input_buffer.key_id), 30 std::string(reinterpret_cast<const char*>(input_buffer.key_id),
31 input_buffer.key_id_size), 31 input_buffer.key_id_size),
32 std::string(reinterpret_cast<const char*>(input_buffer.iv), 32 std::string(reinterpret_cast<const char*>(input_buffer.iv),
33 input_buffer.iv_size), 33 input_buffer.iv_size),
34 std::string(reinterpret_cast<const char*>(input_buffer.checksum),
35 input_buffer.checksum_size),
36 input_buffer.data_offset, 34 input_buffer.data_offset,
37 subsamples)); 35 subsamples));
38 36
39 output_buffer->SetDecryptConfig(decrypt_config.Pass()); 37 output_buffer->SetDecryptConfig(decrypt_config.Pass());
40 output_buffer->SetTimestamp( 38 output_buffer->SetTimestamp(
41 base::TimeDelta::FromMicroseconds(input_buffer.timestamp)); 39 base::TimeDelta::FromMicroseconds(input_buffer.timestamp));
42 40
43 return output_buffer; 41 return output_buffer;
44 } 42 }
45 43
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 229
232 void ClearKeyCdm::ResetVideoDecoder() { 230 void ClearKeyCdm::ResetVideoDecoder() {
233 NOTIMPLEMENTED(); 231 NOTIMPLEMENTED();
234 } 232 }
235 233
236 void ClearKeyCdm::StopVideoDecoder() { 234 void ClearKeyCdm::StopVideoDecoder() {
237 NOTIMPLEMENTED(); 235 NOTIMPLEMENTED();
238 } 236 }
239 237
240 } // namespace webkit_media 238 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/media/crypto/ppapi/cdm_wrapper.cc ('k') | webkit/media/crypto/ppapi/content_decryption_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698