| 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 <cstddef> | 8 #include <cstddef> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 host_port, | 1129 host_port, |
| 1130 *hint)); | 1130 *hint)); |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 void PepperPluginDelegateImpl::UnregisterHostResolver( | 1134 void PepperPluginDelegateImpl::UnregisterHostResolver( |
| 1135 uint32 host_resolver_id) { | 1135 uint32 host_resolver_id) { |
| 1136 host_resolvers_.Remove(host_resolver_id); | 1136 host_resolvers_.Remove(host_resolver_id); |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 bool PepperPluginDelegateImpl::X509CertificateParseDER( |
| 1140 const std::vector<char>& der, |
| 1141 ppapi::PPB_X509Certificate_Fields* fields) { |
| 1142 bool succeeded = false; |
| 1143 render_view_->Send( |
| 1144 new PpapiHostMsg_PPBX509Certificate_ParseDER(der, &succeeded, fields)); |
| 1145 return succeeded; |
| 1146 } |
| 1147 |
| 1139 bool PepperPluginDelegateImpl::AddNetworkListObserver( | 1148 bool PepperPluginDelegateImpl::AddNetworkListObserver( |
| 1140 webkit_glue::NetworkListObserver* observer) { | 1149 webkit_glue::NetworkListObserver* observer) { |
| 1141 #if defined(ENABLE_P2P_APIS) | 1150 #if defined(ENABLE_P2P_APIS) |
| 1142 content::P2PSocketDispatcher* socket_dispatcher = | 1151 content::P2PSocketDispatcher* socket_dispatcher = |
| 1143 render_view_->p2p_socket_dispatcher(); | 1152 render_view_->p2p_socket_dispatcher(); |
| 1144 if (!socket_dispatcher) { | 1153 if (!socket_dispatcher) { |
| 1145 return false; | 1154 return false; |
| 1146 } | 1155 } |
| 1147 socket_dispatcher->AddNetworkListObserver(observer); | 1156 socket_dispatcher->AddNetworkListObserver(observer); |
| 1148 return true; | 1157 return true; |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); | 1656 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); |
| 1648 delete target; | 1657 delete target; |
| 1649 mouse_lock_instances_.erase(it); | 1658 mouse_lock_instances_.erase(it); |
| 1650 } | 1659 } |
| 1651 } | 1660 } |
| 1652 | 1661 |
| 1653 webkit_glue::ClipboardClient* | 1662 webkit_glue::ClipboardClient* |
| 1654 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1663 PepperPluginDelegateImpl::CreateClipboardClient() const { |
| 1655 return new RendererClipboardClient; | 1664 return new RendererClipboardClient; |
| 1656 } | 1665 } |
| OLD | NEW |