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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 2386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2397 } | 2397 } |
2398 | 2398 |
2399 void PepperPluginInstanceImpl::PromiseResolvedWithSession( | 2399 void PepperPluginInstanceImpl::PromiseResolvedWithSession( |
2400 PP_Instance instance, | 2400 PP_Instance instance, |
2401 uint32 promise_id, | 2401 uint32 promise_id, |
2402 PP_Var web_session_id_var) { | 2402 PP_Var web_session_id_var) { |
2403 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, | 2403 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, |
2404 web_session_id_var); | 2404 web_session_id_var); |
2405 } | 2405 } |
2406 | 2406 |
2407 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance, | |
2408 uint32 promise_id, | |
2409 PP_Var key_ids_var) { | |
2410 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id, | |
2411 key_ids_var); | |
2412 } | |
2413 | |
2414 void PepperPluginInstanceImpl::PromiseRejected( | 2407 void PepperPluginInstanceImpl::PromiseRejected( |
2415 PP_Instance instance, | 2408 PP_Instance instance, |
2416 uint32 promise_id, | 2409 uint32 promise_id, |
2417 PP_CdmExceptionCode exception_code, | 2410 PP_CdmExceptionCode exception_code, |
2418 uint32 system_code, | 2411 uint32 system_code, |
2419 PP_Var error_description_var) { | 2412 PP_Var error_description_var) { |
2420 content_decryptor_delegate_->OnPromiseRejected( | 2413 content_decryptor_delegate_->OnPromiseRejected( |
2421 promise_id, exception_code, system_code, error_description_var); | 2414 promise_id, exception_code, system_code, error_description_var); |
2422 } | 2415 } |
2423 | 2416 |
2424 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, | 2417 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, |
2425 PP_Var web_session_id_var, | 2418 PP_Var web_session_id_var, |
2426 PP_Var message_var, | 2419 PP_MessageType message_type, |
2427 PP_Var destination_url_var) { | 2420 PP_Var message_var) { |
2428 content_decryptor_delegate_->OnSessionMessage( | 2421 content_decryptor_delegate_->OnSessionMessage(web_session_id_var, |
2429 web_session_id_var, message_var, destination_url_var); | 2422 message_type, message_var); |
2430 } | 2423 } |
2431 | 2424 |
2432 void PepperPluginInstanceImpl::SessionKeysChange( | 2425 void PepperPluginInstanceImpl::SessionKeysChange( |
2433 PP_Instance instance, | 2426 PP_Instance instance, |
2434 PP_Var web_session_id_var, | 2427 PP_Var web_session_id_var, |
2435 PP_Bool has_additional_usable_key) { | 2428 PP_Bool has_additional_usable_key, |
2436 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var, | 2429 PP_Var key_information_var) { |
2437 has_additional_usable_key); | 2430 content_decryptor_delegate_->OnSessionKeysChange( |
2431 web_session_id_var, has_additional_usable_key, key_information_var); | |
dmichael (off chromium)
2014/12/19 18:50:04
If you haven't run git cl format, please do... I
jrummell
2014/12/20 00:23:08
This is what clang-format did.
| |
2438 } | 2432 } |
2439 | 2433 |
2440 void PepperPluginInstanceImpl::SessionExpirationChange( | 2434 void PepperPluginInstanceImpl::SessionExpirationChange( |
2441 PP_Instance instance, | 2435 PP_Instance instance, |
2442 PP_Var web_session_id_var, | 2436 PP_Var web_session_id_var, |
2443 PP_Time new_expiry_time) { | 2437 PP_Time new_expiry_time) { |
2444 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, | 2438 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, |
2445 new_expiry_time); | 2439 new_expiry_time); |
2446 } | 2440 } |
2447 | 2441 |
2448 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, | |
2449 PP_Var web_session_id_var) { | |
2450 content_decryptor_delegate_->OnSessionReady(web_session_id_var); | |
2451 } | |
2452 | |
2453 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, | 2442 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, |
2454 PP_Var web_session_id_var) { | 2443 PP_Var web_session_id_var) { |
2455 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); | 2444 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); |
2456 } | 2445 } |
2457 | 2446 |
2458 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, | 2447 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, |
2459 PP_Var web_session_id_var, | 2448 PP_Var web_session_id_var, |
2460 PP_CdmExceptionCode exception_code, | 2449 PP_CdmExceptionCode exception_code, |
2461 uint32 system_code, | 2450 uint32 system_code, |
2462 PP_Var error_description_var) { | 2451 PP_Var error_description_var) { |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3283 // Running out-of-process. Initiate an IPC call to notify the plugin | 3272 // Running out-of-process. Initiate an IPC call to notify the plugin |
3284 // process. | 3273 // process. |
3285 ppapi::proxy::HostDispatcher* dispatcher = | 3274 ppapi::proxy::HostDispatcher* dispatcher = |
3286 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3275 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
3287 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3276 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
3288 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3277 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
3289 } | 3278 } |
3290 } | 3279 } |
3291 | 3280 |
3292 } // namespace content | 3281 } // namespace content |
OLD | NEW |