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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 11023004: Update PPP side of Pepper CDM API to support video decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use DecryptAndDecodeFrame instead of DecryptAndDecodeVideo. Created 8 years, 2 months 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 | Annotate | Revision Log
OLDNEW
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_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // TODO(tomfinegan): Move decryptor methods to delegate class. 254 // TODO(tomfinegan): Move decryptor methods to delegate class.
255 void set_decrypt_client(media::DecryptorClient* client); 255 void set_decrypt_client(media::DecryptorClient* client);
256 bool GenerateKeyRequest(const std::string& key_system, 256 bool GenerateKeyRequest(const std::string& key_system,
257 const std::string& init_data); 257 const std::string& init_data);
258 bool AddKey(const std::string& session_id, 258 bool AddKey(const std::string& session_id,
259 const std::string& key, 259 const std::string& key,
260 const std::string& init_data); 260 const std::string& init_data);
261 bool CancelKeyRequest(const std::string& session_id); 261 bool CancelKeyRequest(const std::string& session_id);
262 bool Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 262 bool Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
263 const media::Decryptor::DecryptCB& decrypt_cb); 263 const media::Decryptor::DecryptCB& decrypt_cb);
264 // TODO(xhwang): Update this when we need to support decrypt and decode. 264 bool DecryptAndDecodeFrame(
ddorwin 2012/10/01 00:48:10 Is this TODO really done now? Does the new TODO in
Tom Finegan 2012/10/02 02:42:26 Not really... replaced TODO.
265 bool DecryptAndDecode( 265 const scoped_refptr<media::DecoderBuffer>& encrypted_frame,
266 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
267 const media::Decryptor::DecryptCB& decrypt_cb); 266 const media::Decryptor::DecryptCB& decrypt_cb);
268 267
269 // There are 2 implementations of the fullscreen interface 268 // There are 2 implementations of the fullscreen interface
270 // PPB_FlashFullscreen is used by Pepper Flash. 269 // PPB_FlashFullscreen is used by Pepper Flash.
271 // PPB_Fullscreen is intended for other applications including NaCl. 270 // PPB_Fullscreen is intended for other applications including NaCl.
272 // The two interface are mutually exclusive. 271 // The two interface are mutually exclusive.
273 272
274 // Implementation of PPB_FlashFullscreen. 273 // Implementation of PPB_FlashFullscreen.
275 274
276 // Because going to fullscreen is asynchronous (but going out is not), there 275 // Because going to fullscreen is asynchronous (but going out is not), there
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; 759 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap;
761 DecryptionCBMap pending_decryption_cbs_; 760 DecryptionCBMap pending_decryption_cbs_;
762 761
763 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 762 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
764 }; 763 };
765 764
766 } // namespace ppapi 765 } // namespace ppapi
767 } // namespace webkit 766 } // namespace webkit
768 767
769 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 768 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698