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

Side by Side Diff: media/crypto/aes_decryptor.h

Issue 17381007: EME: ProxyDecryptor creates MediaKeys instead of Decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/crypto/aes_decryptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_CRYPTO_AES_DECRYPTOR_H_ 5 #ifndef MEDIA_CRYPTO_AES_DECRYPTOR_H_
6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_ 6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 virtual ~AesDecryptor(); 34 virtual ~AesDecryptor();
35 35
36 // MediaKeys implementation. 36 // MediaKeys implementation.
37 virtual bool GenerateKeyRequest(const std::string& type, 37 virtual bool GenerateKeyRequest(const std::string& type,
38 const uint8* init_data, 38 const uint8* init_data,
39 int init_data_length) OVERRIDE; 39 int init_data_length) OVERRIDE;
40 virtual void AddKey(const uint8* key, int key_length, 40 virtual void AddKey(const uint8* key, int key_length,
41 const uint8* init_data, int init_data_length, 41 const uint8* init_data, int init_data_length,
42 const std::string& session_id) OVERRIDE; 42 const std::string& session_id) OVERRIDE;
43 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE; 43 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE;
44 virtual Decryptor* GetDecryptor() OVERRIDE;
44 45
45 // Decryptor implementation. 46 // Decryptor implementation.
46 virtual MediaKeys* GetMediaKeys() OVERRIDE;
47 virtual void RegisterNewKeyCB(StreamType stream_type, 47 virtual void RegisterNewKeyCB(StreamType stream_type,
48 const NewKeyCB& key_added_cb) OVERRIDE; 48 const NewKeyCB& key_added_cb) OVERRIDE;
49 virtual void Decrypt(StreamType stream_type, 49 virtual void Decrypt(StreamType stream_type,
50 const scoped_refptr<DecoderBuffer>& encrypted, 50 const scoped_refptr<DecoderBuffer>& encrypted,
51 const DecryptCB& decrypt_cb) OVERRIDE; 51 const DecryptCB& decrypt_cb) OVERRIDE;
52 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; 52 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE;
53 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config, 53 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config,
54 const DecoderInitCB& init_cb) OVERRIDE; 54 const DecoderInitCB& init_cb) OVERRIDE;
55 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, 55 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config,
56 const DecoderInitCB& init_cb) OVERRIDE; 56 const DecoderInitCB& init_cb) OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 NewKeyCB new_audio_key_cb_; 118 NewKeyCB new_audio_key_cb_;
119 NewKeyCB new_video_key_cb_; 119 NewKeyCB new_video_key_cb_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); 121 DISALLOW_COPY_AND_ASSIGN(AesDecryptor);
122 }; 122 };
123 123
124 } // namespace media 124 } // namespace media
125 125
126 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ 126 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/crypto/aes_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698