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 25 matching lines...) Expand all Loading... | |
36 const uint8* init_data, | 36 const uint8* init_data, |
37 int init_data_length, | 37 int init_data_length, |
38 SessionType session_type, | 38 SessionType session_type, |
39 scoped_ptr<NewSessionCdmPromise> promise) OVERRIDE; | 39 scoped_ptr<NewSessionCdmPromise> promise) OVERRIDE; |
40 virtual void LoadSession(const std::string& web_session_id, | 40 virtual void LoadSession(const std::string& web_session_id, |
41 scoped_ptr<NewSessionCdmPromise> promise) OVERRIDE; | 41 scoped_ptr<NewSessionCdmPromise> promise) OVERRIDE; |
42 virtual void UpdateSession(const std::string& web_session_id, | 42 virtual void UpdateSession(const std::string& web_session_id, |
43 const uint8* response, | 43 const uint8* response, |
44 int response_length, | 44 int response_length, |
45 scoped_ptr<SimpleCdmPromise> promise) OVERRIDE; | 45 scoped_ptr<SimpleCdmPromise> promise) OVERRIDE; |
46 void GetUsableKeyIds(const std::string& web_session_id, | |
ddorwin
2014/08/08 23:36:23
Below Release.
Actually, below all of the public i
jrummell
2014/08/11 18:59:03
Done.
| |
47 scoped_ptr<KeyIdsPromise> promise); | |
46 virtual void ReleaseSession(const std::string& web_session_id, | 48 virtual void ReleaseSession(const std::string& web_session_id, |
47 scoped_ptr<SimpleCdmPromise> promise) OVERRIDE; | 49 scoped_ptr<SimpleCdmPromise> promise) OVERRIDE; |
48 virtual Decryptor* GetDecryptor() OVERRIDE; | 50 virtual Decryptor* GetDecryptor() OVERRIDE; |
49 | 51 |
50 // Decryptor implementation. | 52 // Decryptor implementation. |
51 virtual void RegisterNewKeyCB(StreamType stream_type, | 53 virtual void RegisterNewKeyCB(StreamType stream_type, |
52 const NewKeyCB& key_added_cb) OVERRIDE; | 54 const NewKeyCB& key_added_cb) OVERRIDE; |
53 virtual void Decrypt(StreamType stream_type, | 55 virtual void Decrypt(StreamType stream_type, |
54 const scoped_refptr<DecoderBuffer>& encrypted, | 56 const scoped_refptr<DecoderBuffer>& encrypted, |
55 const DecryptCB& decrypt_cb) OVERRIDE; | 57 const DecryptCB& decrypt_cb) OVERRIDE; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 // Protect |new_audio_key_cb_| and |new_video_key_cb_| as they are set on the | 139 // 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. | 140 // main thread but called on the media thread. |
139 mutable base::Lock new_key_cb_lock_; | 141 mutable base::Lock new_key_cb_lock_; |
140 | 142 |
141 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); | 143 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); |
142 }; | 144 }; |
143 | 145 |
144 } // namespace media | 146 } // namespace media |
145 | 147 |
146 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 148 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
OLD | NEW |