| 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_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 // Pending Listen request. | 1082 // Pending Listen request. |
| 1083 uninitialized_tcp_server_sockets_.Remove(temp_socket_id); | 1083 uninitialized_tcp_server_sockets_.Remove(temp_socket_id); |
| 1084 } | 1084 } |
| 1085 } else { | 1085 } else { |
| 1086 render_view_->Send( | 1086 render_view_->Send( |
| 1087 new PpapiHostMsg_PPBTCPServerSocket_Destroy(real_socket_id)); | 1087 new PpapiHostMsg_PPBTCPServerSocket_Destroy(real_socket_id)); |
| 1088 tcp_server_sockets_.Remove(real_socket_id); | 1088 tcp_server_sockets_.Remove(real_socket_id); |
| 1089 } | 1089 } |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 bool PepperPluginDelegateImpl::X509CertificateParseDER( |
| 1093 const std::vector<char>& der, |
| 1094 ppapi::PPB_X509Certificate_Fields* fields) { |
| 1095 bool succeeded = false; |
| 1096 render_view_->Send( |
| 1097 new PpapiHostMsg_PPBX509Certificate_ParseDER(der, &succeeded, fields)); |
| 1098 return succeeded; |
| 1099 |
| 1100 } |
| 1101 |
| 1092 int32_t PepperPluginDelegateImpl::ShowContextMenu( | 1102 int32_t PepperPluginDelegateImpl::ShowContextMenu( |
| 1093 webkit::ppapi::PluginInstance* instance, | 1103 webkit::ppapi::PluginInstance* instance, |
| 1094 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 1104 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 1095 const gfx::Point& position) { | 1105 const gfx::Point& position) { |
| 1096 int32 render_widget_id = render_view_->routing_id(); | 1106 int32 render_widget_id = render_view_->routing_id(); |
| 1097 if (instance->FlashIsFullscreen(instance->pp_instance())) { | 1107 if (instance->FlashIsFullscreen(instance->pp_instance())) { |
| 1098 webkit::ppapi::FullscreenContainer* container = | 1108 webkit::ppapi::FullscreenContainer* container = |
| 1099 instance->fullscreen_container(); | 1109 instance->fullscreen_container(); |
| 1100 DCHECK(container); | 1110 DCHECK(container); |
| 1101 render_widget_id = | 1111 render_widget_id = |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); | 1566 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); |
| 1557 delete target; | 1567 delete target; |
| 1558 mouse_lock_instances_.erase(it); | 1568 mouse_lock_instances_.erase(it); |
| 1559 } | 1569 } |
| 1560 } | 1570 } |
| 1561 | 1571 |
| 1562 webkit_glue::ClipboardClient* | 1572 webkit_glue::ClipboardClient* |
| 1563 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1573 PepperPluginDelegateImpl::CreateClipboardClient() const { |
| 1564 return new RendererClipboardClient; | 1574 return new RendererClipboardClient; |
| 1565 } | 1575 } |
| OLD | NEW |