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

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: Set PPP interface version to 0.2 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 int PrintBegin(const WebKit::WebPrintParams& print_params); 244 int PrintBegin(const WebKit::WebPrintParams& print_params);
245 bool PrintPage(int page_number, WebKit::WebCanvas* canvas); 245 bool PrintPage(int page_number, WebKit::WebCanvas* canvas);
246 void PrintEnd(); 246 void PrintEnd();
247 247
248 bool CanRotateView(); 248 bool CanRotateView();
249 void RotateView(WebKit::WebPlugin::RotationType type); 249 void RotateView(WebKit::WebPlugin::RotationType type);
250 250
251 void Graphics3DContextLost(); 251 void Graphics3DContextLost();
252 252
253 // Provides access to PPP_ContentDecryptor_Private. 253 // Provides access to PPP_ContentDecryptor_Private.
254 // Note: These methods can be used with unecrypted data.
ddorwin 2012/10/02 05:36:50 Really, it's jus the D&D method(s) that this makes
Tom Finegan 2012/10/04 02:22:12 Done, I think. Moved comment above PluginInstance:
ddorwin 2012/10/04 16:37:09 The cc comment is fine, but I meant this comment s
254 // TODO(tomfinegan): Move decryptor methods to delegate class. 255 // TODO(tomfinegan): Move decryptor methods to delegate class.
255 void set_decrypt_client(media::DecryptorClient* client); 256 void set_decrypt_client(media::DecryptorClient* client);
256 bool GenerateKeyRequest(const std::string& key_system, 257 bool GenerateKeyRequest(const std::string& key_system,
257 const std::string& init_data); 258 const std::string& init_data);
258 bool AddKey(const std::string& session_id, 259 bool AddKey(const std::string& session_id,
259 const std::string& key, 260 const std::string& key,
260 const std::string& init_data); 261 const std::string& init_data);
261 bool CancelKeyRequest(const std::string& session_id); 262 bool CancelKeyRequest(const std::string& session_id);
262 bool Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 263 bool Decrypt(const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
263 const media::Decryptor::DecryptCB& decrypt_cb); 264 const media::Decryptor::DecryptCB& decrypt_cb);
264 // TODO(xhwang): Update this when we need to support decrypt and decode. 265 // TODO(xhwang): Update this when we need to support decrypt and decode.
265 bool DecryptAndDecode( 266 bool DecryptAndDecodeFrame(
266 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 267 const scoped_refptr<media::DecoderBuffer>& encrypted_frame,
267 const media::Decryptor::DecryptCB& decrypt_cb); 268 const media::Decryptor::DecryptCB& decrypt_cb);
268 269
269 // There are 2 implementations of the fullscreen interface 270 // There are 2 implementations of the fullscreen interface
270 // PPB_FlashFullscreen is used by Pepper Flash. 271 // PPB_FlashFullscreen is used by Pepper Flash.
271 // PPB_Fullscreen is intended for other applications including NaCl. 272 // PPB_Fullscreen is intended for other applications including NaCl.
272 // The two interface are mutually exclusive. 273 // The two interface are mutually exclusive.
273 274
274 // Implementation of PPB_FlashFullscreen. 275 // Implementation of PPB_FlashFullscreen.
275 276
276 // Because going to fullscreen is asynchronous (but going out is not), there 277 // 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; 761 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap;
761 DecryptionCBMap pending_decryption_cbs_; 762 DecryptionCBMap pending_decryption_cbs_;
762 763
763 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 764 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
764 }; 765 };
765 766
766 } // namespace ppapi 767 } // namespace ppapi
767 } // namespace webkit 768 } // namespace webkit
768 769
769 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 770 #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