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 CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 bool has_additional_usable_key); | 109 bool has_additional_usable_key); |
110 void OnSessionExpirationUpdate(const std::string& web_session_id, | 110 void OnSessionExpirationUpdate(const std::string& web_session_id, |
111 const base::Time& new_expiry_time); | 111 const base::Time& new_expiry_time); |
112 void OnSessionReady(const std::string& web_session_id); | 112 void OnSessionReady(const std::string& web_session_id); |
113 void OnSessionClosed(const std::string& web_session_id); | 113 void OnSessionClosed(const std::string& web_session_id); |
114 void OnSessionError(const std::string& web_session_id, | 114 void OnSessionError(const std::string& web_session_id, |
115 MediaKeys::Exception exception_code, | 115 MediaKeys::Exception exception_code, |
116 uint32 system_code, | 116 uint32 system_code, |
117 const std::string& error_description); | 117 const std::string& error_description); |
118 | 118 |
119 // On a successful Update() or SessionReady event, trigger playback to resume. | 119 // On an OnSessionKeysChange event, trigger playback to resume. |
sandersd (OOO until July 31)
2014/11/03 21:54:16
"On a SessionKeysChange event..."
ddorwin
2014/11/03 22:33:30
Why does this function comment need to explain whe
jrummell
2014/11/03 23:19:29
Removed comment and renamed function.
| |
120 void ResumePlayback(); | 120 void ResumePlayback(); |
121 | 121 |
122 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|. | 122 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|. |
123 // The error is terminal and |plugin_cdm_delegate_| should not be used after | 123 // The error is terminal and |plugin_cdm_delegate_| should not be used after |
124 // this call. | 124 // this call. |
125 void OnFatalPluginError(); | 125 void OnFatalPluginError(); |
126 | 126 |
127 ContentDecryptorDelegate* CdmDelegate(); | 127 ContentDecryptorDelegate* CdmDelegate(); |
128 | 128 |
129 // Hold a reference of the Pepper CDM wrapper to make sure the plugin lives | 129 // Hold a reference of the Pepper CDM wrapper to make sure the plugin lives |
(...skipping 17 matching lines...) Expand all Loading... | |
147 | 147 |
148 // NOTE: Weak pointers must be invalidated before all other member variables. | 148 // NOTE: Weak pointers must be invalidated before all other member variables. |
149 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; | 149 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); | 151 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace content | 154 } // namespace content |
155 | 155 |
156 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 156 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
OLD | NEW |