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

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

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 } 2456 }
2457 2457
2458 void PepperPluginInstanceImpl::PromiseResolvedWithSession( 2458 void PepperPluginInstanceImpl::PromiseResolvedWithSession(
2459 PP_Instance instance, 2459 PP_Instance instance,
2460 uint32 promise_id, 2460 uint32 promise_id,
2461 PP_Var web_session_id_var) { 2461 PP_Var web_session_id_var) {
2462 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, 2462 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id,
2463 web_session_id_var); 2463 web_session_id_var);
2464 } 2464 }
2465 2465
2466 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance,
2467 uint32 promise_id,
2468 PP_Var key_ids_var) {
2469 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id,
2470 key_ids_var);
2471 }
2472
2466 void PepperPluginInstanceImpl::PromiseRejected( 2473 void PepperPluginInstanceImpl::PromiseRejected(
2467 PP_Instance instance, 2474 PP_Instance instance,
2468 uint32 promise_id, 2475 uint32 promise_id,
2469 PP_CdmExceptionCode exception_code, 2476 PP_CdmExceptionCode exception_code,
2470 uint32 system_code, 2477 uint32 system_code,
2471 PP_Var error_description_var) { 2478 PP_Var error_description_var) {
2472 content_decryptor_delegate_->OnPromiseRejected( 2479 content_decryptor_delegate_->OnPromiseRejected(
2473 promise_id, exception_code, system_code, error_description_var); 2480 promise_id, exception_code, system_code, error_description_var);
2474 } 2481 }
2475 2482
2476 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, 2483 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance,
2477 PP_Var web_session_id_var, 2484 PP_Var web_session_id_var,
2478 PP_Var message_var, 2485 PP_Var message_var,
2479 PP_Var destination_url_var) { 2486 PP_Var destination_url_var) {
2480 content_decryptor_delegate_->OnSessionMessage( 2487 content_decryptor_delegate_->OnSessionMessage(
2481 web_session_id_var, message_var, destination_url_var); 2488 web_session_id_var, message_var, destination_url_var);
2482 } 2489 }
2483 2490
2491 void PepperPluginInstanceImpl::SessionKeysChange(
2492 PP_Instance instance,
2493 PP_Var web_session_id_var,
2494 PP_Bool has_additional_usable_key) {
2495 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var,
2496 has_additional_usable_key);
2497 }
2498
2499 void PepperPluginInstanceImpl::SessionExpirationChange(
2500 PP_Instance instance,
2501 PP_Var web_session_id_var,
2502 PP_Time new_expiry_time) {
2503 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var,
2504 new_expiry_time);
2505 }
2506
2484 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, 2507 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance,
2485 PP_Var web_session_id_var) { 2508 PP_Var web_session_id_var) {
2486 content_decryptor_delegate_->OnSessionReady(web_session_id_var); 2509 content_decryptor_delegate_->OnSessionReady(web_session_id_var);
2487 } 2510 }
2488 2511
2489 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, 2512 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance,
2490 PP_Var web_session_id_var) { 2513 PP_Var web_session_id_var) {
2491 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); 2514 content_decryptor_delegate_->OnSessionClosed(web_session_id_var);
2492 } 2515 }
2493 2516
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 // Running out-of-process. Initiate an IPC call to notify the plugin 3343 // Running out-of-process. Initiate an IPC call to notify the plugin
3321 // process. 3344 // process.
3322 ppapi::proxy::HostDispatcher* dispatcher = 3345 ppapi::proxy::HostDispatcher* dispatcher =
3323 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3346 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3324 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3347 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3325 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3348 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3326 } 3349 }
3327 } 3350 }
3328 3351
3329 } // namespace content 3352 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698