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

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

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cdm_7 changes Created 6 years 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/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 } 2401 }
2402 2402
2403 void PepperPluginInstanceImpl::PromiseResolvedWithSession( 2403 void PepperPluginInstanceImpl::PromiseResolvedWithSession(
2404 PP_Instance instance, 2404 PP_Instance instance,
2405 uint32 promise_id, 2405 uint32 promise_id,
2406 PP_Var web_session_id_var) { 2406 PP_Var web_session_id_var) {
2407 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, 2407 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id,
2408 web_session_id_var); 2408 web_session_id_var);
2409 } 2409 }
2410 2410
2411 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance,
2412 uint32 promise_id,
2413 PP_Var key_ids_var) {
2414 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id,
2415 key_ids_var);
2416 }
2417
2418 void PepperPluginInstanceImpl::PromiseRejected( 2411 void PepperPluginInstanceImpl::PromiseRejected(
2419 PP_Instance instance, 2412 PP_Instance instance,
2420 uint32 promise_id, 2413 uint32 promise_id,
2421 PP_CdmExceptionCode exception_code, 2414 PP_CdmExceptionCode exception_code,
2422 uint32 system_code, 2415 uint32 system_code,
2423 PP_Var error_description_var) { 2416 PP_Var error_description_var) {
2424 content_decryptor_delegate_->OnPromiseRejected( 2417 content_decryptor_delegate_->OnPromiseRejected(
2425 promise_id, exception_code, system_code, error_description_var); 2418 promise_id, exception_code, system_code, error_description_var);
2426 } 2419 }
2427 2420
2428 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, 2421 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance,
2429 PP_Var web_session_id_var, 2422 PP_Var web_session_id_var,
2430 PP_Var message_var, 2423 PP_MessageType message_type,
2431 PP_Var destination_url_var) { 2424 PP_Var message_var) {
2432 content_decryptor_delegate_->OnSessionMessage( 2425 content_decryptor_delegate_->OnSessionMessage(web_session_id_var,
2433 web_session_id_var, message_var, destination_url_var); 2426 message_type, message_var);
2434 } 2427 }
2435 2428
2436 void PepperPluginInstanceImpl::SessionKeysChange( 2429 void PepperPluginInstanceImpl::SessionKeysChange(
2437 PP_Instance instance, 2430 PP_Instance instance,
2438 PP_Var web_session_id_var, 2431 PP_Var web_session_id_var,
2439 PP_Bool has_additional_usable_key) { 2432 PP_Bool has_additional_usable_key,
2440 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var, 2433 PP_Var key_information_var) {
2441 has_additional_usable_key); 2434 content_decryptor_delegate_->OnSessionKeysChange(
2435 web_session_id_var, has_additional_usable_key, key_information_var);
2442 } 2436 }
2443 2437
2444 void PepperPluginInstanceImpl::SessionExpirationChange( 2438 void PepperPluginInstanceImpl::SessionExpirationChange(
2445 PP_Instance instance, 2439 PP_Instance instance,
2446 PP_Var web_session_id_var, 2440 PP_Var web_session_id_var,
2447 PP_Time new_expiry_time) { 2441 PP_Time new_expiry_time) {
2448 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, 2442 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var,
2449 new_expiry_time); 2443 new_expiry_time);
2450 } 2444 }
2451 2445
2452 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance,
2453 PP_Var web_session_id_var) {
2454 content_decryptor_delegate_->OnSessionReady(web_session_id_var);
2455 }
2456
2457 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, 2446 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance,
2458 PP_Var web_session_id_var) { 2447 PP_Var web_session_id_var) {
2459 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); 2448 content_decryptor_delegate_->OnSessionClosed(web_session_id_var);
2460 } 2449 }
2461 2450
2462 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, 2451 void PepperPluginInstanceImpl::SessionError(PP_Instance instance,
2463 PP_Var web_session_id_var, 2452 PP_Var web_session_id_var,
2464 PP_CdmExceptionCode exception_code, 2453 PP_CdmExceptionCode exception_code,
2465 uint32 system_code, 2454 uint32 system_code,
2466 PP_Var error_description_var) { 2455 PP_Var error_description_var) {
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3287 // Running out-of-process. Initiate an IPC call to notify the plugin 3276 // Running out-of-process. Initiate an IPC call to notify the plugin
3288 // process. 3277 // process.
3289 ppapi::proxy::HostDispatcher* dispatcher = 3278 ppapi::proxy::HostDispatcher* dispatcher =
3290 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3279 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3291 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3280 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3292 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3281 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3293 } 3282 }
3294 } 3283 }
3295 3284
3296 } // namespace content 3285 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698