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