| 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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 render_view_->Send( | 1124 render_view_->Send( |
| 1125 new PpapiHostMsg_PPBHostResolver_Resolve( | 1125 new PpapiHostMsg_PPBHostResolver_Resolve( |
| 1126 GetRoutingID(), | 1126 GetRoutingID(), |
| 1127 0, | 1127 0, |
| 1128 host_resolver_id, | 1128 host_resolver_id, |
| 1129 host_port, | 1129 host_port, |
| 1130 *hint)); | 1130 *hint)); |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 void PepperPluginDelegateImpl::UnregisterHostResolver( | 1134 void PepperPluginDelegateImpl::UnregisterHostResolver(uint32 host_resolver_id) { |
| 1135 uint32 host_resolver_id) { | |
| 1136 host_resolvers_.Remove(host_resolver_id); | 1135 host_resolvers_.Remove(host_resolver_id); |
| 1137 } | 1136 } |
| 1138 | 1137 |
| 1139 bool PepperPluginDelegateImpl::AddNetworkListObserver( | 1138 bool PepperPluginDelegateImpl::AddNetworkListObserver( |
| 1140 webkit_glue::NetworkListObserver* observer) { | 1139 webkit_glue::NetworkListObserver* observer) { |
| 1141 #if defined(ENABLE_P2P_APIS) | 1140 #if defined(ENABLE_P2P_APIS) |
| 1142 content::P2PSocketDispatcher* socket_dispatcher = | 1141 content::P2PSocketDispatcher* socket_dispatcher = |
| 1143 render_view_->p2p_socket_dispatcher(); | 1142 render_view_->p2p_socket_dispatcher(); |
| 1144 if (!socket_dispatcher) { | 1143 if (!socket_dispatcher) { |
| 1145 return false; | 1144 return false; |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); | 1646 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); |
| 1648 delete target; | 1647 delete target; |
| 1649 mouse_lock_instances_.erase(it); | 1648 mouse_lock_instances_.erase(it); |
| 1650 } | 1649 } |
| 1651 } | 1650 } |
| 1652 | 1651 |
| 1653 webkit_glue::ClipboardClient* | 1652 webkit_glue::ClipboardClient* |
| 1654 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1653 PepperPluginDelegateImpl::CreateClipboardClient() const { |
| 1655 return new RendererClipboardClient; | 1654 return new RendererClipboardClient; |
| 1656 } | 1655 } |
| OLD | NEW |