| OLD | NEW |
| 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 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2447 } | 2447 } |
| 2448 | 2448 |
| 2449 void PepperPluginInstanceImpl::PromiseResolvedWithSession( | 2449 void PepperPluginInstanceImpl::PromiseResolvedWithSession( |
| 2450 PP_Instance instance, | 2450 PP_Instance instance, |
| 2451 uint32 promise_id, | 2451 uint32 promise_id, |
| 2452 PP_Var web_session_id_var) { | 2452 PP_Var web_session_id_var) { |
| 2453 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, | 2453 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, |
| 2454 web_session_id_var); | 2454 web_session_id_var); |
| 2455 } | 2455 } |
| 2456 | 2456 |
| 2457 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance, |
| 2458 uint32 promise_id, |
| 2459 PP_Var key_ids_var) { |
| 2460 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id, |
| 2461 key_ids_var); |
| 2462 } |
| 2463 |
| 2457 void PepperPluginInstanceImpl::PromiseRejected( | 2464 void PepperPluginInstanceImpl::PromiseRejected( |
| 2458 PP_Instance instance, | 2465 PP_Instance instance, |
| 2459 uint32 promise_id, | 2466 uint32 promise_id, |
| 2460 PP_CdmExceptionCode exception_code, | 2467 PP_CdmExceptionCode exception_code, |
| 2461 uint32 system_code, | 2468 uint32 system_code, |
| 2462 PP_Var error_description_var) { | 2469 PP_Var error_description_var) { |
| 2463 content_decryptor_delegate_->OnPromiseRejected( | 2470 content_decryptor_delegate_->OnPromiseRejected( |
| 2464 promise_id, exception_code, system_code, error_description_var); | 2471 promise_id, exception_code, system_code, error_description_var); |
| 2465 } | 2472 } |
| 2466 | 2473 |
| 2467 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, | 2474 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, |
| 2468 PP_Var web_session_id_var, | 2475 PP_Var web_session_id_var, |
| 2469 PP_Var message_var, | 2476 PP_Var message_var, |
| 2470 PP_Var destination_url_var) { | 2477 PP_Var destination_url_var) { |
| 2471 content_decryptor_delegate_->OnSessionMessage( | 2478 content_decryptor_delegate_->OnSessionMessage( |
| 2472 web_session_id_var, message_var, destination_url_var); | 2479 web_session_id_var, message_var, destination_url_var); |
| 2473 } | 2480 } |
| 2474 | 2481 |
| 2482 void PepperPluginInstanceImpl::SessionKeysChange( |
| 2483 PP_Instance instance, |
| 2484 PP_Var web_session_id_var, |
| 2485 PP_Bool has_additional_usable_key) { |
| 2486 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var, |
| 2487 has_additional_usable_key); |
| 2488 } |
| 2489 |
| 2490 void PepperPluginInstanceImpl::SessionExpirationChange( |
| 2491 PP_Instance instance, |
| 2492 PP_Var web_session_id_var, |
| 2493 PP_Time new_expiry_time) { |
| 2494 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, |
| 2495 new_expiry_time); |
| 2496 } |
| 2497 |
| 2475 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, | 2498 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, |
| 2476 PP_Var web_session_id_var) { | 2499 PP_Var web_session_id_var) { |
| 2477 content_decryptor_delegate_->OnSessionReady(web_session_id_var); | 2500 content_decryptor_delegate_->OnSessionReady(web_session_id_var); |
| 2478 } | 2501 } |
| 2479 | 2502 |
| 2480 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, | 2503 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, |
| 2481 PP_Var web_session_id_var) { | 2504 PP_Var web_session_id_var) { |
| 2482 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); | 2505 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); |
| 2483 } | 2506 } |
| 2484 | 2507 |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3311 // Running out-of-process. Initiate an IPC call to notify the plugin | 3334 // Running out-of-process. Initiate an IPC call to notify the plugin |
| 3312 // process. | 3335 // process. |
| 3313 ppapi::proxy::HostDispatcher* dispatcher = | 3336 ppapi::proxy::HostDispatcher* dispatcher = |
| 3314 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3337 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
| 3315 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3338 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
| 3316 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3339 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
| 3317 } | 3340 } |
| 3318 } | 3341 } |
| 3319 | 3342 |
| 3320 } // namespace content | 3343 } // namespace content |
| OLD | NEW |