OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int response_length, | 51 int response_length, |
52 scoped_ptr<SimpleCdmPromise> promise) override; | 52 scoped_ptr<SimpleCdmPromise> promise) override; |
53 void CloseSession(const std::string& web_session_id, | 53 void CloseSession(const std::string& web_session_id, |
54 scoped_ptr<SimpleCdmPromise> promise) override; | 54 scoped_ptr<SimpleCdmPromise> promise) override; |
55 void RemoveSession(const std::string& web_session_id, | 55 void RemoveSession(const std::string& web_session_id, |
56 scoped_ptr<SimpleCdmPromise> promise) override; | 56 scoped_ptr<SimpleCdmPromise> promise) override; |
57 CdmContext* GetCdmContext() override; | 57 CdmContext* GetCdmContext() override; |
58 | 58 |
59 // CdmContext implementation. | 59 // CdmContext implementation. |
60 Decryptor* GetDecryptor() override; | 60 Decryptor* GetDecryptor() override; |
61 #if defined(ENABLE_BROWSER_CDMS) | 61 int GetCdmId() const override; |
62 virtual int GetCdmId() const override; | |
63 #endif // defined(ENABLE_BROWSER_CDMS) | |
64 | 62 |
65 // Decryptor implementation. | 63 // Decryptor implementation. |
66 void RegisterNewKeyCB(StreamType stream_type, | 64 void RegisterNewKeyCB(StreamType stream_type, |
67 const NewKeyCB& key_added_cb) override; | 65 const NewKeyCB& key_added_cb) override; |
68 void Decrypt(StreamType stream_type, | 66 void Decrypt(StreamType stream_type, |
69 const scoped_refptr<DecoderBuffer>& encrypted, | 67 const scoped_refptr<DecoderBuffer>& encrypted, |
70 const DecryptCB& decrypt_cb) override; | 68 const DecryptCB& decrypt_cb) override; |
71 void CancelDecrypt(StreamType stream_type) override; | 69 void CancelDecrypt(StreamType stream_type) override; |
72 void InitializeAudioDecoder(const AudioDecoderConfig& config, | 70 void InitializeAudioDecoder(const AudioDecoderConfig& config, |
73 const DecoderInitCB& init_cb) override; | 71 const DecoderInitCB& init_cb) override; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Protect |new_audio_key_cb_| and |new_video_key_cb_| as they are set on the | 149 // Protect |new_audio_key_cb_| and |new_video_key_cb_| as they are set on the |
152 // main thread but called on the media thread. | 150 // main thread but called on the media thread. |
153 mutable base::Lock new_key_cb_lock_; | 151 mutable base::Lock new_key_cb_lock_; |
154 | 152 |
155 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); | 153 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); |
156 }; | 154 }; |
157 | 155 |
158 } // namespace media | 156 } // namespace media |
159 | 157 |
160 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 158 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
OLD | NEW |