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