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

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

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove vector.data() Created 6 years, 3 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/base/limits.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/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
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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/base/limits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698