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

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

Issue 11087044: Generalize Pepper CDM API decrypt and decode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
« no previous file with comments | « webkit/media/crypto/ppapi/cdm_wrapper.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.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 (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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // TODO(xhwang): Change DecryptCB to a DecoderInitCB. 266 // TODO(xhwang): Change DecryptCB to a DecoderInitCB.
267 bool InitializeVideoDecoder( 267 bool InitializeVideoDecoder(
268 const media::VideoDecoderConfig& decoder_config, 268 const media::VideoDecoderConfig& decoder_config,
269 const media::Decryptor::DecryptCB& decrypt_cb); 269 const media::Decryptor::DecryptCB& decrypt_cb);
270 // TODO(tomfinegan): Add callback args for DeinitializeDecoder() and 270 // TODO(tomfinegan): Add callback args for DeinitializeDecoder() and
271 // ResetDecoder() 271 // ResetDecoder()
272 bool DeinitializeDecoder(); 272 bool DeinitializeDecoder();
273 bool ResetDecoder(); 273 bool ResetDecoder();
274 // TODO(xhwang): Update this when we need to support decrypt and decode. 274 // TODO(xhwang): Update this when we need to support decrypt and decode.
275 // Note: This method can be used with an unencrypted frame. 275 // Note: This method can be used with an unencrypted frame.
276 bool DecryptAndDecodeFrame( 276 bool DecryptAndDecode(
277 const scoped_refptr<media::DecoderBuffer>& encrypted_frame, 277 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
278 const media::Decryptor::DecryptCB& decrypt_cb); 278 const media::Decryptor::DecryptCB& decrypt_cb);
279 279
280 // There are 2 implementations of the fullscreen interface 280 // There are 2 implementations of the fullscreen interface
281 // PPB_FlashFullscreen is used by Pepper Flash. 281 // PPB_FlashFullscreen is used by Pepper Flash.
282 // PPB_Fullscreen is intended for other applications including NaCl. 282 // PPB_Fullscreen is intended for other applications including NaCl.
283 // The two interface are mutually exclusive. 283 // The two interface are mutually exclusive.
284 284
285 // Implementation of PPB_FlashFullscreen. 285 // Implementation of PPB_FlashFullscreen.
286 286
287 // Because going to fullscreen is asynchronous (but going out is not), there 287 // Because going to fullscreen is asynchronous (but going out is not), there
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; 784 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap;
785 DecryptionCBMap pending_decryption_cbs_; 785 DecryptionCBMap pending_decryption_cbs_;
786 786
787 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 787 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
788 }; 788 };
789 789
790 } // namespace ppapi 790 } // namespace ppapi
791 } // namespace webkit 791 } // namespace webkit
792 792
793 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 793 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/media/crypto/ppapi/cdm_wrapper.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698