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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more trybot issue Created 6 years, 6 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
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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 virtual PP_Var GetDocumentURL(PP_Instance instance, 445 virtual PP_Var GetDocumentURL(PP_Instance instance,
446 PP_URLComponents_Dev* components) OVERRIDE; 446 PP_URLComponents_Dev* components) OVERRIDE;
447 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 447 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
448 PP_URLComponents_Dev* components) 448 PP_URLComponents_Dev* components)
449 OVERRIDE; 449 OVERRIDE;
450 virtual PP_Var GetPluginReferrerURL(PP_Instance instance, 450 virtual PP_Var GetPluginReferrerURL(PP_Instance instance,
451 PP_URLComponents_Dev* components) 451 PP_URLComponents_Dev* components)
452 OVERRIDE; 452 OVERRIDE;
453 453
454 // PPB_ContentDecryptor_Private implementation. 454 // PPB_ContentDecryptor_Private implementation.
455 virtual void SessionCreated(PP_Instance instance, 455 virtual void PromiseResolved(PP_Instance instance,
456 uint32_t session_id, 456 uint32 promise_id) OVERRIDE;
457 PP_Var web_session_id_var) OVERRIDE; 457 virtual void PromiseResolvedWithSession(PP_Instance instance,
458 uint32 promise_id,
459 PP_Var web_session_id_var) OVERRIDE;
460 virtual void PromiseRejected(PP_Instance instance,
461 uint32 promise_id,
462 PP_CdmExceptionCode exception_code,
463 uint32 system_code,
464 PP_Var error_description_var) OVERRIDE;
458 virtual void SessionMessage(PP_Instance instance, 465 virtual void SessionMessage(PP_Instance instance,
459 uint32_t session_id, 466 PP_Var web_session_id_var,
460 PP_Var message, 467 PP_Var message_var,
461 PP_Var destination_url) OVERRIDE; 468 PP_Var destination_url_var) OVERRIDE;
462 virtual void SessionReady(PP_Instance instance, uint32_t session_id) OVERRIDE; 469 virtual void SessionReady(PP_Instance instance,
470 PP_Var web_session_id_var) OVERRIDE;
463 virtual void SessionClosed(PP_Instance instance, 471 virtual void SessionClosed(PP_Instance instance,
464 uint32_t session_id) OVERRIDE; 472 PP_Var web_session_id_var) OVERRIDE;
465 virtual void SessionError(PP_Instance instance, 473 virtual void SessionError(PP_Instance instance,
466 uint32_t session_id, 474 PP_Var web_session_id_var,
467 int32_t media_error, 475 PP_CdmExceptionCode exception_code,
468 uint32_t system_code) OVERRIDE; 476 uint32 system_code,
477 PP_Var error_description_var) OVERRIDE;
469 virtual void DeliverBlock(PP_Instance instance, 478 virtual void DeliverBlock(PP_Instance instance,
470 PP_Resource decrypted_block, 479 PP_Resource decrypted_block,
471 const PP_DecryptedBlockInfo* block_info) OVERRIDE; 480 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
472 virtual void DecoderInitializeDone(PP_Instance instance, 481 virtual void DecoderInitializeDone(PP_Instance instance,
473 PP_DecryptorStreamType decoder_type, 482 PP_DecryptorStreamType decoder_type,
474 uint32_t request_id, 483 uint32_t request_id,
475 PP_Bool success) OVERRIDE; 484 PP_Bool success) OVERRIDE;
476 virtual void DecoderDeinitializeDone(PP_Instance instance, 485 virtual void DecoderDeinitializeDone(PP_Instance instance,
477 PP_DecryptorStreamType decoder_type, 486 PP_DecryptorStreamType decoder_type,
478 uint32_t request_id) OVERRIDE; 487 uint32_t request_id) OVERRIDE;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 894 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
886 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 895 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
887 896
888 friend class PpapiPluginInstanceTest; 897 friend class PpapiPluginInstanceTest;
889 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 898 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
890 }; 899 };
891 900
892 } // namespace content 901 } // namespace content
893 902
894 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 903 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698