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

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

Issue 11270057: Add type argument to pepper content decryptor method GenerateKeyRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 1 month 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 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 class FFmpegCdmVideoDecoder; 39 class FFmpegCdmVideoDecoder;
40 40
41 // Clear key implementation of the cdm::ContentDecryptionModule interface. 41 // Clear key implementation of the cdm::ContentDecryptionModule interface.
42 class ClearKeyCdm : public cdm::ContentDecryptionModule { 42 class ClearKeyCdm : public cdm::ContentDecryptionModule {
43 public: 43 public:
44 explicit ClearKeyCdm(cdm::Allocator* allocator, cdm::CdmHost*); 44 explicit ClearKeyCdm(cdm::Allocator* allocator, cdm::CdmHost*);
45 virtual ~ClearKeyCdm(); 45 virtual ~ClearKeyCdm();
46 46
47 // ContentDecryptionModule implementation. 47 // ContentDecryptionModule implementation.
48 virtual cdm::Status GenerateKeyRequest( 48 virtual cdm::Status GenerateKeyRequest(
49 const uint8_t* init_data, 49 const char* type, int type_size,
50 int init_data_size, 50 const uint8_t* init_data, int init_data_size,
51 cdm::KeyMessage* key_request) OVERRIDE; 51 cdm::KeyMessage* key_request) OVERRIDE;
52 virtual cdm::Status AddKey(const char* session_id, 52 virtual cdm::Status AddKey(const char* session_id, int session_id_size,
53 int session_id_size, 53 const uint8_t* key, int key_size,
54 const uint8_t* key, 54 const uint8_t* key_id, int key_id_size) OVERRIDE;
55 int key_size,
56 const uint8_t* key_id,
57 int key_id_size) OVERRIDE;
58 virtual cdm::Status CancelKeyRequest(const char* session_id, 55 virtual cdm::Status CancelKeyRequest(const char* session_id,
59 int session_id_size) OVERRIDE; 56 int session_id_size) OVERRIDE;
60 virtual void TimerExpired(cdm::KeyMessage* msg, bool* populated) OVERRIDE; 57 virtual void TimerExpired(cdm::KeyMessage* msg, bool* populated) OVERRIDE;
61 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer, 58 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer,
62 cdm::DecryptedBlock* decrypted_block) OVERRIDE; 59 cdm::DecryptedBlock* decrypted_block) OVERRIDE;
63 virtual cdm::Status InitializeAudioDecoder( 60 virtual cdm::Status InitializeAudioDecoder(
64 const cdm::AudioDecoderConfig& audio_decoder_config) OVERRIDE; 61 const cdm::AudioDecoderConfig& audio_decoder_config) OVERRIDE;
65 virtual cdm::Status InitializeVideoDecoder( 62 virtual cdm::Status InitializeVideoDecoder(
66 const cdm::VideoDecoderConfig& video_decoder_config) OVERRIDE; 63 const cdm::VideoDecoderConfig& video_decoder_config) OVERRIDE;
67 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) OVERRIDE; 64 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) OVERRIDE;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER 163 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER
167 164
168 #if defined(CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER) 165 #if defined(CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER)
169 cdm::Size video_size_; 166 cdm::Size video_size_;
170 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER 167 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER
171 }; 168 };
172 169
173 } // namespace webkit_media 170 } // namespace webkit_media
174 171
175 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ 172 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698