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

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: latest CDM_5 Created 6 years, 7 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 virtual PP_Var GetDocumentURL(PP_Instance instance, 437 virtual PP_Var GetDocumentURL(PP_Instance instance,
438 PP_URLComponents_Dev* components) OVERRIDE; 438 PP_URLComponents_Dev* components) OVERRIDE;
439 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 439 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
440 PP_URLComponents_Dev* components) 440 PP_URLComponents_Dev* components)
441 OVERRIDE; 441 OVERRIDE;
442 virtual PP_Var GetPluginReferrerURL(PP_Instance instance, 442 virtual PP_Var GetPluginReferrerURL(PP_Instance instance,
443 PP_URLComponents_Dev* components) 443 PP_URLComponents_Dev* components)
444 OVERRIDE; 444 OVERRIDE;
445 445
446 // PPB_ContentDecryptor_Private implementation. 446 // PPB_ContentDecryptor_Private implementation.
447 virtual void SessionCreated(PP_Instance instance, 447 virtual void PromiseResolved(PP_Instance instance,
448 uint32_t session_id, 448 uint32 promise_id) OVERRIDE;
449 PP_Var web_session_id_var) OVERRIDE; 449 virtual void PromiseResolvedWithSession(PP_Instance instance,
450 uint32 promise_id,
451 PP_Var web_session_id_var) OVERRIDE;
452 virtual void PromiseRejected(PP_Instance instance,
453 uint32 promise_id,
454 PP_ExceptionCodeType exception_code,
455 uint32 system_code,
456 PP_Var error_description_var) OVERRIDE;
450 virtual void SessionMessage(PP_Instance instance, 457 virtual void SessionMessage(PP_Instance instance,
451 uint32_t session_id, 458 PP_Var web_session_id_var,
452 PP_Var message, 459 PP_Var message_var,
453 PP_Var destination_url) OVERRIDE; 460 PP_Var destination_url_var) OVERRIDE;
454 virtual void SessionReady(PP_Instance instance, uint32_t session_id) OVERRIDE; 461 virtual void SessionReady(PP_Instance instance,
462 PP_Var web_session_id_var) OVERRIDE;
455 virtual void SessionClosed(PP_Instance instance, 463 virtual void SessionClosed(PP_Instance instance,
456 uint32_t session_id) OVERRIDE; 464 PP_Var web_session_id_var) OVERRIDE;
457 virtual void SessionError(PP_Instance instance, 465 virtual void SessionError(PP_Instance instance,
458 uint32_t session_id, 466 PP_Var web_session_id_var,
459 int32_t media_error, 467 PP_ExceptionCodeType exception_code,
460 uint32_t system_code) OVERRIDE; 468 uint32 system_code,
469 PP_Var error_description_var) OVERRIDE;
461 virtual void DeliverBlock(PP_Instance instance, 470 virtual void DeliverBlock(PP_Instance instance,
462 PP_Resource decrypted_block, 471 PP_Resource decrypted_block,
463 const PP_DecryptedBlockInfo* block_info) OVERRIDE; 472 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
464 virtual void DecoderInitializeDone(PP_Instance instance, 473 virtual void DecoderInitializeDone(PP_Instance instance,
465 PP_DecryptorStreamType decoder_type, 474 PP_DecryptorStreamType decoder_type,
466 uint32_t request_id, 475 uint32_t request_id,
467 PP_Bool success) OVERRIDE; 476 PP_Bool success) OVERRIDE;
468 virtual void DecoderDeinitializeDone(PP_Instance instance, 477 virtual void DecoderDeinitializeDone(PP_Instance instance,
469 PP_DecryptorStreamType decoder_type, 478 PP_DecryptorStreamType decoder_type,
470 uint32_t request_id) OVERRIDE; 479 uint32_t request_id) OVERRIDE;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 880 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
872 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 881 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
873 882
874 friend class PpapiPluginInstanceTest; 883 friend class PpapiPluginInstanceTest;
875 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 884 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
876 }; 885 };
877 886
878 } // namespace content 887 } // namespace content
879 888
880 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 889 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698