OLD | NEW |
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 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2360 } | 2360 } |
2361 | 2361 |
2362 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, | 2362 void PepperPluginInstanceImpl::SessionClosed(PP_Instance instance, |
2363 uint32_t session_id) { | 2363 uint32_t session_id) { |
2364 content_decryptor_delegate_->OnSessionClosed(session_id); | 2364 content_decryptor_delegate_->OnSessionClosed(session_id); |
2365 } | 2365 } |
2366 | 2366 |
2367 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, | 2367 void PepperPluginInstanceImpl::SessionError(PP_Instance instance, |
2368 uint32_t session_id, | 2368 uint32_t session_id, |
2369 int32_t media_error, | 2369 int32_t media_error, |
2370 int32_t system_code) { | 2370 uint32_t system_code) { |
2371 content_decryptor_delegate_->OnSessionError( | 2371 content_decryptor_delegate_->OnSessionError( |
2372 session_id, media_error, system_code); | 2372 session_id, media_error, system_code); |
2373 } | 2373 } |
2374 | 2374 |
2375 void PepperPluginInstanceImpl::DeliverBlock( | 2375 void PepperPluginInstanceImpl::DeliverBlock( |
2376 PP_Instance instance, | 2376 PP_Instance instance, |
2377 PP_Resource decrypted_block, | 2377 PP_Resource decrypted_block, |
2378 const PP_DecryptedBlockInfo* block_info) { | 2378 const PP_DecryptedBlockInfo* block_info) { |
2379 content_decryptor_delegate_->DeliverBlock(decrypted_block, block_info); | 2379 content_decryptor_delegate_->DeliverBlock(decrypted_block, block_info); |
2380 } | 2380 } |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3177 // Running out-of-process. Initiate an IPC call to notify the plugin | 3177 // Running out-of-process. Initiate an IPC call to notify the plugin |
3178 // process. | 3178 // process. |
3179 ppapi::proxy::HostDispatcher* dispatcher = | 3179 ppapi::proxy::HostDispatcher* dispatcher = |
3180 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3180 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
3181 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3181 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
3182 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3182 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
3183 } | 3183 } |
3184 } | 3184 } |
3185 | 3185 |
3186 } // namespace content | 3186 } // namespace content |
OLD | NEW |