Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: content/renderer/media/crypto/ppapi_decryptor.h

Issue 697203003: Resume playback of EME stream only on SessionKeysChange event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 void AttemptToResumePlayback();
120 void ResumePlayback();
121 120
122 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|. 121 // 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 122 // The error is terminal and |plugin_cdm_delegate_| should not be used after
124 // this call. 123 // this call.
125 void OnFatalPluginError(); 124 void OnFatalPluginError();
126 125
127 ContentDecryptorDelegate* CdmDelegate(); 126 ContentDecryptorDelegate* CdmDelegate();
128 127
129 // Hold a reference of the Pepper CDM wrapper to make sure the plugin lives 128 // Hold a reference of the Pepper CDM wrapper to make sure the plugin lives
130 // as long as needed. 129 // as long as needed.
(...skipping 16 matching lines...) Expand all
147 146
148 // NOTE: Weak pointers must be invalidated before all other member variables. 147 // NOTE: Weak pointers must be invalidated before all other member variables.
149 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 148 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 150 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
152 }; 151 };
153 152
154 } // namespace content 153 } // namespace content
155 154
156 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 155 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698