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

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

Issue 448893002: Update ClearKey to support CDM_6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cdm6
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « media/base/media_keys.h ('k') | media/cdm/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const DecoderInitCB& init_cb) OVERRIDE; 60 const DecoderInitCB& init_cb) OVERRIDE;
61 virtual void DecryptAndDecodeAudio( 61 virtual void DecryptAndDecodeAudio(
62 const scoped_refptr<DecoderBuffer>& encrypted, 62 const scoped_refptr<DecoderBuffer>& encrypted,
63 const AudioDecodeCB& audio_decode_cb) OVERRIDE; 63 const AudioDecodeCB& audio_decode_cb) OVERRIDE;
64 virtual void DecryptAndDecodeVideo( 64 virtual void DecryptAndDecodeVideo(
65 const scoped_refptr<DecoderBuffer>& encrypted, 65 const scoped_refptr<DecoderBuffer>& encrypted,
66 const VideoDecodeCB& video_decode_cb) OVERRIDE; 66 const VideoDecodeCB& video_decode_cb) OVERRIDE;
67 virtual void ResetDecoder(StreamType stream_type) OVERRIDE; 67 virtual void ResetDecoder(StreamType stream_type) OVERRIDE;
68 virtual void DeinitializeDecoder(StreamType stream_type) OVERRIDE; 68 virtual void DeinitializeDecoder(StreamType stream_type) OVERRIDE;
69 69
70 void GetUsableKeyIds(const std::string& web_session_id,
71 scoped_ptr<KeyIdsPromise> promise);
72
70 private: 73 private:
71 // TODO(fgalligan): Remove this and change KeyMap to use crypto::SymmetricKey 74 // TODO(fgalligan): Remove this and change KeyMap to use crypto::SymmetricKey
72 // as there are no decryptors that are performing an integrity check. 75 // as there are no decryptors that are performing an integrity check.
73 // Helper class that manages the decryption key. 76 // Helper class that manages the decryption key.
74 class DecryptionKey { 77 class DecryptionKey {
75 public: 78 public:
76 explicit DecryptionKey(const std::string& secret); 79 explicit DecryptionKey(const std::string& secret);
77 ~DecryptionKey(); 80 ~DecryptionKey();
78 81
79 // Creates the encryption key. 82 // Creates the encryption key.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Protect |new_audio_key_cb_| and |new_video_key_cb_| as they are set on the 140 // Protect |new_audio_key_cb_| and |new_video_key_cb_| as they are set on the
138 // main thread but called on the media thread. 141 // main thread but called on the media thread.
139 mutable base::Lock new_key_cb_lock_; 142 mutable base::Lock new_key_cb_lock_;
140 143
141 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); 144 DISALLOW_COPY_AND_ASSIGN(AesDecryptor);
142 }; 145 };
143 146
144 } // namespace media 147 } // namespace media
145 148
146 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ 149 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/media_keys.h ('k') | media/cdm/aes_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698