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 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 } | 2478 } |
2479 | 2479 |
2480 void PepperPluginInstanceImpl::PromiseResolvedWithSession( | 2480 void PepperPluginInstanceImpl::PromiseResolvedWithSession( |
2481 PP_Instance instance, | 2481 PP_Instance instance, |
2482 uint32 promise_id, | 2482 uint32 promise_id, |
2483 PP_Var web_session_id_var) { | 2483 PP_Var web_session_id_var) { |
2484 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, | 2484 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, |
2485 web_session_id_var); | 2485 web_session_id_var); |
2486 } | 2486 } |
2487 | 2487 |
| 2488 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance, |
| 2489 uint32 promise_id, |
| 2490 PP_Var key_ids_var) { |
| 2491 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id, |
| 2492 key_ids_var); |
| 2493 } |
| 2494 |
2488 void PepperPluginInstanceImpl::PromiseRejected( | 2495 void PepperPluginInstanceImpl::PromiseRejected( |
2489 PP_Instance instance, | 2496 PP_Instance instance, |
2490 uint32 promise_id, | 2497 uint32 promise_id, |
2491 PP_CdmExceptionCode exception_code, | 2498 PP_CdmExceptionCode exception_code, |
2492 uint32 system_code, | 2499 uint32 system_code, |
2493 PP_Var error_description_var) { | 2500 PP_Var error_description_var) { |
2494 content_decryptor_delegate_->OnPromiseRejected( | 2501 content_decryptor_delegate_->OnPromiseRejected( |
2495 promise_id, exception_code, system_code, error_description_var); | 2502 promise_id, exception_code, system_code, error_description_var); |
2496 } | 2503 } |
2497 | 2504 |
2498 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, | 2505 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, |
2499 PP_Var web_session_id_var, | 2506 PP_Var web_session_id_var, |
2500 PP_Var message_var, | 2507 PP_Var message_var, |
2501 PP_Var destination_url_var) { | 2508 PP_Var destination_url_var) { |
2502 content_decryptor_delegate_->OnSessionMessage( | 2509 content_decryptor_delegate_->OnSessionMessage( |
2503 web_session_id_var, message_var, destination_url_var); | 2510 web_session_id_var, message_var, destination_url_var); |
2504 } | 2511 } |
2505 | 2512 |
| 2513 void PepperPluginInstanceImpl::SessionKeysChange( |
| 2514 PP_Instance instance, |
| 2515 PP_Var web_session_id_var, |
| 2516 PP_Bool has_additional_usable_key) { |
| 2517 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var, |
| 2518 has_additional_usable_key); |
| 2519 } |
| 2520 |
| 2521 void PepperPluginInstanceImpl::SessionExpirationChange( |
| 2522 PP_Instance instance, |
| 2523 PP_Var web_session_id_var, |
| 2524 PP_Time new_expiry_time) { |
| 2525 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, |
| 2526 new_expiry_time); |
| 2527 } |
| 2528 |
2506 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, | 2529 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, |
2507 PP_Var web_session_id_var) { | 2530 PP_Var web_session_id_var) { |
2508 content_decryptor_delegate_->OnSessionReady(web_session_id_var); | 2531 content_decryptor_delegate_->OnSessionReady(web_session_id_var); |
2509 } | 2532 } |
2510 | 2533 |
2511 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, | 2534 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, |
2512 PP_Var web_session_id_var) { | 2535 PP_Var web_session_id_var) { |
2513 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); | 2536 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); |
2514 } | 2537 } |
2515 | 2538 |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3342 // Running out-of-process. Initiate an IPC call to notify the plugin | 3365 // Running out-of-process. Initiate an IPC call to notify the plugin |
3343 // process. | 3366 // process. |
3344 ppapi::proxy::HostDispatcher* dispatcher = | 3367 ppapi::proxy::HostDispatcher* dispatcher = |
3345 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3368 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
3346 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3369 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
3347 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3370 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
3348 } | 3371 } |
3349 } | 3372 } |
3350 | 3373 |
3351 } // namespace content | 3374 } // namespace content |
OLD | NEW |