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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Stop() OVERRIDE; | 53 virtual void Stop() OVERRIDE; |
54 | 54 |
55 private: | 55 private: |
56 void ReportFailureToCallPlugin(const std::string& key_system, | |
57 const std::string& session_id); | |
58 | |
59 media::DecryptorClient* client_; | 56 media::DecryptorClient* client_; |
60 scoped_refptr<webkit::ppapi::PluginInstance> cdm_plugin_; | 57 scoped_refptr<webkit::ppapi::PluginInstance> cdm_plugin_; |
61 scoped_refptr<base::MessageLoopProxy> render_loop_proxy_; | 58 scoped_refptr<base::MessageLoopProxy> render_loop_proxy_; |
62 | 59 |
63 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); | 60 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); |
64 }; | 61 }; |
65 | 62 |
66 } // namespace webkit_media | 63 } // namespace webkit_media |
67 | 64 |
68 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 65 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
OLD | NEW |