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

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

Issue 24192004: Changes to the EME Pepper API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/cdm/ppapi/cdm_wrapper.cc » ('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 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 2172
2173 PP_Var PepperPluginInstanceImpl::GetDefaultCharSet(PP_Instance instance) { 2173 PP_Var PepperPluginInstanceImpl::GetDefaultCharSet(PP_Instance instance) {
2174 return StringVar::StringToPPVar( 2174 return StringVar::StringToPPVar(
2175 render_view_->webkit_preferences().default_encoding); 2175 render_view_->webkit_preferences().default_encoding);
2176 } 2176 }
2177 2177
2178 // These PPB_ContentDecryptor_Private calls are responses to 2178 // These PPB_ContentDecryptor_Private calls are responses to
2179 // PPP_ContentDecryptor_Private calls made on |content_decryptor_delegate_|. 2179 // PPP_ContentDecryptor_Private calls made on |content_decryptor_delegate_|.
2180 // Therefore, |content_decryptor_delegate_| must have been initialized when 2180 // Therefore, |content_decryptor_delegate_| must have been initialized when
2181 // the following methods are called. 2181 // the following methods are called.
2182 void PepperPluginInstanceImpl::NeedKey(PP_Instance instance,
2183 PP_Var key_system_var,
2184 PP_Var session_id_var,
2185 PP_Var init_data_var) {
2186 content_decryptor_delegate_->NeedKey(
2187 key_system_var, session_id_var, init_data_var);
2188 }
2189
2190 void PepperPluginInstanceImpl::KeyAdded(PP_Instance instance, 2182 void PepperPluginInstanceImpl::KeyAdded(PP_Instance instance,
2191 PP_Var key_system_var, 2183 PP_Var key_system_var,
2192 PP_Var session_id_var) { 2184 PP_Var session_id_var) {
2193 content_decryptor_delegate_->KeyAdded(key_system_var, session_id_var); 2185 content_decryptor_delegate_->KeyAdded(key_system_var, session_id_var);
2194 } 2186 }
2195 2187
2196 void PepperPluginInstanceImpl::KeyMessage(PP_Instance instance, 2188 void PepperPluginInstanceImpl::KeyMessage(PP_Instance instance,
2197 PP_Var key_system_var, 2189 PP_Var key_system_var,
2198 PP_Var session_id_var, 2190 PP_Var session_id_var,
2199 PP_Var message_var, 2191 PP_Var message_var,
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 // Running out-of-process. Initiate an IPC call to notify the plugin 2966 // Running out-of-process. Initiate an IPC call to notify the plugin
2975 // process. 2967 // process.
2976 ppapi::proxy::HostDispatcher* dispatcher = 2968 ppapi::proxy::HostDispatcher* dispatcher =
2977 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 2969 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
2978 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 2970 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
2979 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 2971 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
2980 } 2972 }
2981 } 2973 }
2982 2974
2983 } // namespace content 2975 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/cdm/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698