OLD | NEW |
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 WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const uint8* key, | 44 const uint8* key, |
45 int key_length, | 45 int key_length, |
46 const uint8* init_data, | 46 const uint8* init_data, |
47 int init_data_length, | 47 int init_data_length, |
48 const std::string& session_id) OVERRIDE; | 48 const std::string& session_id) OVERRIDE; |
49 virtual void CancelKeyRequest(const std::string& key_system, | 49 virtual void CancelKeyRequest(const std::string& key_system, |
50 const std::string& session_id) OVERRIDE; | 50 const std::string& session_id) OVERRIDE; |
51 virtual void Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted, | 51 virtual void Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted, |
52 const DecryptCB& decrypt_cb) OVERRIDE; | 52 const DecryptCB& decrypt_cb) OVERRIDE; |
53 virtual void CancelDecrypt() OVERRIDE; | 53 virtual void CancelDecrypt() OVERRIDE; |
| 54 virtual void InitializeVideoDecoder(const media::VideoDecoderConfig& config, |
| 55 const DecoderInitCB& init_cb) OVERRIDE; |
| 56 virtual void DecryptAndDecodeVideo( |
| 57 const scoped_refptr<media::DecoderBuffer>& encrypted, |
| 58 const VideoDecodeCB& video_decode_cb) OVERRIDE; |
| 59 virtual void CancelDecryptAndDecodeVideo() OVERRIDE; |
| 60 virtual void StopVideoDecoder() OVERRIDE; |
54 | 61 |
55 private: | 62 private: |
56 void ReportFailureToCallPlugin(const std::string& key_system, | 63 void ReportFailureToCallPlugin(const std::string& key_system, |
57 const std::string& session_id); | 64 const std::string& session_id); |
58 | 65 |
59 media::DecryptorClient* client_; | 66 media::DecryptorClient* client_; |
60 scoped_refptr<webkit::ppapi::PluginInstance> cdm_plugin_; | 67 scoped_refptr<webkit::ppapi::PluginInstance> cdm_plugin_; |
61 scoped_refptr<base::MessageLoopProxy> render_loop_proxy_; | 68 scoped_refptr<base::MessageLoopProxy> render_loop_proxy_; |
62 | 69 |
63 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); | 70 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); |
64 }; | 71 }; |
65 | 72 |
66 } // namespace webkit_media | 73 } // namespace webkit_media |
67 | 74 |
68 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 75 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
OLD | NEW |