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

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

Issue 105383002: Rename EME WD call parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit Created 7 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 PP_Var PepperPluginInstanceImpl::GetDefaultCharSet(PP_Instance instance) { 2262 PP_Var PepperPluginInstanceImpl::GetDefaultCharSet(PP_Instance instance) {
2263 return StringVar::StringToPPVar( 2263 return StringVar::StringToPPVar(
2264 render_frame_->render_view()->webkit_preferences().default_encoding); 2264 render_frame_->render_view()->webkit_preferences().default_encoding);
2265 } 2265 }
2266 2266
2267 // These PPB_ContentDecryptor_Private calls are responses to 2267 // These PPB_ContentDecryptor_Private calls are responses to
2268 // PPP_ContentDecryptor_Private calls made on |content_decryptor_delegate_|. 2268 // PPP_ContentDecryptor_Private calls made on |content_decryptor_delegate_|.
2269 // Therefore, |content_decryptor_delegate_| must have been initialized when 2269 // Therefore, |content_decryptor_delegate_| must have been initialized when
2270 // the following methods are called. 2270 // the following methods are called.
2271 void PepperPluginInstanceImpl::SessionCreated(PP_Instance instance, 2271 void PepperPluginInstanceImpl::SessionCreated(PP_Instance instance,
2272 uint32_t reference_id, 2272 uint32_t session_id,
2273 PP_Var session_id_var) { 2273 PP_Var web_session_id_var) {
2274 content_decryptor_delegate_->OnSessionCreated(reference_id, session_id_var); 2274 content_decryptor_delegate_->OnSessionCreated(session_id, web_session_id_var);
2275 } 2275 }
2276 2276
2277 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance, 2277 void PepperPluginInstanceImpl::SessionMessage(PP_Instance instance,
2278 uint32_t reference_id, 2278 uint32_t session_id,
2279 PP_Var message_var, 2279 PP_Var message_var,
2280 PP_Var destination_url) { 2280 PP_Var destination_url) {
2281 content_decryptor_delegate_->OnSessionMessage( 2281 content_decryptor_delegate_->OnSessionMessage(
2282 reference_id, message_var, destination_url); 2282 session_id, message_var, destination_url);
2283 } 2283 }
2284 2284
2285 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance, 2285 void PepperPluginInstanceImpl::SessionReady(PP_Instance instance,
2286 uint32_t reference_id) { 2286 uint32_t session_id) {
2287 content_decryptor_delegate_->OnSessionReady(reference_id); 2287 content_decryptor_delegate_->OnSessionReady(session_id);
2288 } 2288 }
2289 2289
2290 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, 2290 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance,
2291 uint32_t reference_id) { 2291 uint32_t session_id) {
2292 content_decryptor_delegate_->OnSessionClosed(reference_id); 2292 content_decryptor_delegate_->OnSessionClosed(session_id);
2293 } 2293 }
2294 2294
2295 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, 2295 void PepperPluginInstanceImpl::SessionError(PP_Instance instance,
2296 uint32_t reference_id, 2296 uint32_t session_id,
2297 int32_t media_error, 2297 int32_t media_error,
2298 int32_t system_code) { 2298 int32_t system_code) {
2299 content_decryptor_delegate_->OnSessionError( 2299 content_decryptor_delegate_->OnSessionError(
2300 reference_id, media_error, system_code); 2300 session_id, media_error, system_code);
2301 } 2301 }
2302 2302
2303 void PepperPluginInstanceImpl::DeliverBlock( 2303 void PepperPluginInstanceImpl::DeliverBlock(
2304 PP_Instance instance, 2304 PP_Instance instance,
2305 PP_Resource decrypted_block, 2305 PP_Resource decrypted_block,
2306 const PP_DecryptedBlockInfo* block_info) { 2306 const PP_DecryptedBlockInfo* block_info) {
2307 content_decryptor_delegate_->DeliverBlock(decrypted_block, block_info); 2307 content_decryptor_delegate_->DeliverBlock(decrypted_block, block_info);
2308 } 2308 }
2309 2309
2310 void PepperPluginInstanceImpl::DecoderInitializeDone( 2310 void PepperPluginInstanceImpl::DecoderInitializeDone(
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
3075 // Running out-of-process. Initiate an IPC call to notify the plugin 3075 // Running out-of-process. Initiate an IPC call to notify the plugin
3076 // process. 3076 // process.
3077 ppapi::proxy::HostDispatcher* dispatcher = 3077 ppapi::proxy::HostDispatcher* dispatcher =
3078 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3078 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3079 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3079 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3080 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3080 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3081 } 3081 }
3082 } 3082 }
3083 3083
3084 } // namespace content 3084 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698