| Index: content/renderer/media/crypto/ppapi_decryptor.h
|
| diff --git a/content/renderer/media/crypto/ppapi_decryptor.h b/content/renderer/media/crypto/ppapi_decryptor.h
|
| index 95c5f74a4c3e9a23efabc23e486d6206c9041bce..a51824f9e7e8f9f9c8801becf64a4b6fe8695c78 100644
|
| --- a/content/renderer/media/crypto/ppapi_decryptor.h
|
| +++ b/content/renderer/media/crypto/ppapi_decryptor.h
|
| @@ -73,7 +73,8 @@ class PpapiDecryptor : public media::MediaKeys, public media::Decryptor {
|
| virtual void DeinitializeDecoder(StreamType stream_type) OVERRIDE;
|
|
|
| private:
|
| - PpapiDecryptor(const scoped_refptr<PepperPluginInstanceImpl>& plugin_instance,
|
| + PpapiDecryptor(const std::string& key_system,
|
| + const scoped_refptr<PepperPluginInstanceImpl>& plugin_instance,
|
| ContentDecryptorDelegate* plugin_cdm_delegate,
|
| const media::SessionCreatedCB& session_created_cb,
|
| const media::SessionMessageCB& session_message_cb,
|
| @@ -97,6 +98,11 @@ class PpapiDecryptor : public media::MediaKeys, public media::Decryptor {
|
| media::MediaKeys::KeyError error_code,
|
| int system_code);
|
|
|
| + // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|.
|
| + // The error is terminal and |plugin_cdm_delegate_| should not be used after
|
| + // this call.
|
| + void OnFatalPluginError();
|
| +
|
| base::WeakPtr<PpapiDecryptor> weak_this_;
|
|
|
| // Hold a reference of the plugin instance to make sure the plugin outlives
|
|
|