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

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: Android changes 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 virtual PP_Var GetDocumentURL(PP_Instance instance, 440 virtual PP_Var GetDocumentURL(PP_Instance instance,
441 PP_URLComponents_Dev* components) OVERRIDE; 441 PP_URLComponents_Dev* components) OVERRIDE;
442 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 442 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
443 PP_URLComponents_Dev* components) 443 PP_URLComponents_Dev* components)
444 OVERRIDE; 444 OVERRIDE;
445 virtual PP_Var GetPluginReferrerURL(PP_Instance instance, 445 virtual PP_Var GetPluginReferrerURL(PP_Instance instance,
446 PP_URLComponents_Dev* components) 446 PP_URLComponents_Dev* components)
447 OVERRIDE; 447 OVERRIDE;
448 448
449 // PPB_ContentDecryptor_Private implementation. 449 // PPB_ContentDecryptor_Private implementation.
450 virtual void SessionCreated(PP_Instance instance, 450 virtual void PromiseResolved(PP_Instance instance,
451 uint32_t session_id, 451 uint32 promise_id) OVERRIDE;
452 PP_Var web_session_id_var) OVERRIDE; 452 virtual void PromiseResolvedWithSession(PP_Instance instance,
453 uint32 promise_id,
454 PP_Var web_session_id_var) OVERRIDE;
455 virtual void PromiseRejected(PP_Instance instance,
456 uint32 promise_id,
457 PP_ExceptionCode exception_code,
458 uint32 system_code,
459 PP_Var error_description_var) OVERRIDE;
453 virtual void SessionMessage(PP_Instance instance, 460 virtual void SessionMessage(PP_Instance instance,
454 uint32_t session_id, 461 PP_Var web_session_id_var,
455 PP_Var message, 462 PP_Var message_var,
456 PP_Var destination_url) OVERRIDE; 463 PP_Var destination_url_var) OVERRIDE;
457 virtual void SessionReady(PP_Instance instance, uint32_t session_id) OVERRIDE; 464 virtual void SessionReady(PP_Instance instance,
465 PP_Var web_session_id_var) OVERRIDE;
458 virtual void SessionClosed(PP_Instance instance, 466 virtual void SessionClosed(PP_Instance instance,
459 uint32_t session_id) OVERRIDE; 467 PP_Var web_session_id_var) OVERRIDE;
460 virtual void SessionError(PP_Instance instance, 468 virtual void SessionError(PP_Instance instance,
461 uint32_t session_id, 469 PP_Var web_session_id_var,
462 int32_t media_error, 470 PP_ExceptionCode exception_code,
463 uint32_t system_code) OVERRIDE; 471 uint32 system_code,
472 PP_Var error_description_var) OVERRIDE;
464 virtual void DeliverBlock(PP_Instance instance, 473 virtual void DeliverBlock(PP_Instance instance,
465 PP_Resource decrypted_block, 474 PP_Resource decrypted_block,
466 const PP_DecryptedBlockInfo* block_info) OVERRIDE; 475 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
467 virtual void DecoderInitializeDone(PP_Instance instance, 476 virtual void DecoderInitializeDone(PP_Instance instance,
468 PP_DecryptorStreamType decoder_type, 477 PP_DecryptorStreamType decoder_type,
469 uint32_t request_id, 478 uint32_t request_id,
470 PP_Bool success) OVERRIDE; 479 PP_Bool success) OVERRIDE;
471 virtual void DecoderDeinitializeDone(PP_Instance instance, 480 virtual void DecoderDeinitializeDone(PP_Instance instance,
472 PP_DecryptorStreamType decoder_type, 481 PP_DecryptorStreamType decoder_type,
473 uint32_t request_id) OVERRIDE; 482 uint32_t request_id) OVERRIDE;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 889 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
881 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 890 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
882 891
883 friend class PpapiPluginInstanceTest; 892 friend class PpapiPluginInstanceTest;
884 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 893 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
885 }; 894 };
886 895
887 } // namespace content 896 } // namespace content
888 897
889 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 898 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698