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

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: CrOS compile error Created 5 years, 11 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/cdm/ppapi/cdm_adapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 } 2404 }
2405 2405
2406 void PepperPluginInstanceImpl::PromiseResolvedWithSession( 2406 void PepperPluginInstanceImpl::PromiseResolvedWithSession(
2407 PP_Instance instance, 2407 PP_Instance instance,
2408 uint32 promise_id, 2408 uint32 promise_id,
2409 PP_Var web_session_id_var) { 2409 PP_Var web_session_id_var) {
2410 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id, 2410 content_decryptor_delegate_->OnPromiseResolvedWithSession(promise_id,
2411 web_session_id_var); 2411 web_session_id_var);
2412 } 2412 }
2413 2413
2414 void PepperPluginInstanceImpl::PromiseResolvedWithKeyIds(PP_Instance instance,
2415 uint32 promise_id,
2416 PP_Var key_ids_var) {
2417 content_decryptor_delegate_->OnPromiseResolvedWithKeyIds(promise_id,
2418 key_ids_var);
2419 }
2420
2421 void PepperPluginInstanceImpl::PromiseRejected( 2414 void PepperPluginInstanceImpl::PromiseRejected(
2422 PP_Instance instance, 2415 PP_Instance instance,
2423 uint32 promise_id, 2416 uint32 promise_id,
2424 PP_CdmExceptionCode exception_code, 2417 PP_CdmExceptionCode exception_code,
2425 uint32 system_code, 2418 uint32 system_code,
2426 PP_Var error_description_var) { 2419 PP_Var error_description_var) {
2427 content_decryptor_delegate_->OnPromiseRejected( 2420 content_decryptor_delegate_->OnPromiseRejected(
2428 promise_id, exception_code, system_code, error_description_var); 2421 promise_id, exception_code, system_code, error_description_var);
2429 } 2422 }
2430 2423
2431 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, 2424 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance,
2432 PP_Var web_session_id_var, 2425 PP_Var web_session_id_var,
2433 PP_Var message_var, 2426 PP_CdmMessageType message_type,
2434 PP_Var destination_url_var) { 2427 PP_Var message_var) {
2435 content_decryptor_delegate_->OnSessionMessage( 2428 content_decryptor_delegate_->OnSessionMessage(web_session_id_var,
2436 web_session_id_var, message_var, destination_url_var); 2429 message_type, message_var);
2437 } 2430 }
2438 2431
2439 void PepperPluginInstanceImpl::SessionKeysChange( 2432 void PepperPluginInstanceImpl::SessionKeysChange(
2440 PP_Instance instance, 2433 PP_Instance instance,
2441 PP_Var web_session_id_var, 2434 PP_Var web_session_id_var,
2442 PP_Bool has_additional_usable_key) { 2435 PP_Bool has_additional_usable_key,
2436 uint32_t key_count,
2437 const struct PP_KeyInformation key_information[]) {
2443 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var, 2438 content_decryptor_delegate_->OnSessionKeysChange(web_session_id_var,
2444 has_additional_usable_key); 2439 has_additional_usable_key,
2440 key_count, key_information);
2445 } 2441 }
2446 2442
2447 void PepperPluginInstanceImpl::SessionExpirationChange( 2443 void PepperPluginInstanceImpl::SessionExpirationChange(
2448 PP_Instance instance, 2444 PP_Instance instance,
2449 PP_Var web_session_id_var, 2445 PP_Var web_session_id_var,
2450 PP_Time new_expiry_time) { 2446 PP_Time new_expiry_time) {
2451 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var, 2447 content_decryptor_delegate_->OnSessionExpirationChange(web_session_id_var,
2452 new_expiry_time); 2448 new_expiry_time);
2453 } 2449 }
2454 2450
2455 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance,
2456 PP_Var web_session_id_var) {
2457 content_decryptor_delegate_->OnSessionReady(web_session_id_var);
2458 }
2459
2460 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, 2451 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance,
2461 PP_Var web_session_id_var) { 2452 PP_Var web_session_id_var) {
2462 content_decryptor_delegate_->OnSessionClosed(web_session_id_var); 2453 content_decryptor_delegate_->OnSessionClosed(web_session_id_var);
2463 } 2454 }
2464 2455
2465 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, 2456 void PepperPluginInstanceImpl::SessionError(PP_Instance instance,
2466 PP_Var web_session_id_var, 2457 PP_Var web_session_id_var,
2467 PP_CdmExceptionCode exception_code, 2458 PP_CdmExceptionCode exception_code,
2468 uint32 system_code, 2459 uint32 system_code,
2469 PP_Var error_description_var) { 2460 PP_Var error_description_var) {
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3290 // Running out-of-process. Initiate an IPC call to notify the plugin 3281 // Running out-of-process. Initiate an IPC call to notify the plugin
3291 // process. 3282 // process.
3292 ppapi::proxy::HostDispatcher* dispatcher = 3283 ppapi::proxy::HostDispatcher* dispatcher =
3293 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3284 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3294 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3285 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3295 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3286 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3296 } 3287 }
3297 } 3288 }
3298 3289
3299 } // namespace content 3290 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/cdm/ppapi/cdm_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698