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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 render_view_->Send( | 1271 render_view_->Send( |
1272 new PpapiHostMsg_PPBUDPSocket_RecvFrom(socket_id, num_bytes)); | 1272 new PpapiHostMsg_PPBUDPSocket_RecvFrom(socket_id, num_bytes)); |
1273 } | 1273 } |
1274 | 1274 |
1275 void PepperPluginDelegateImpl::UDPSocketSendTo( | 1275 void PepperPluginDelegateImpl::UDPSocketSendTo( |
1276 uint32 socket_id, | 1276 uint32 socket_id, |
1277 const std::string& buffer, | 1277 const std::string& buffer, |
1278 const PP_NetAddress_Private& net_addr) { | 1278 const PP_NetAddress_Private& net_addr) { |
1279 DCHECK(udp_sockets_.Lookup(socket_id)); | 1279 DCHECK(udp_sockets_.Lookup(socket_id)); |
1280 render_view_->Send( | 1280 render_view_->Send( |
1281 new PpapiHostMsg_PPBUDPSocket_SendTo(socket_id, buffer, net_addr)); | 1281 new PpapiHostMsg_PPBUDPSocket_SendTo(render_view_->routing_id(), |
| 1282 socket_id, buffer, net_addr)); |
1282 } | 1283 } |
1283 | 1284 |
1284 void PepperPluginDelegateImpl::UDPSocketClose(uint32 socket_id) { | 1285 void PepperPluginDelegateImpl::UDPSocketClose(uint32 socket_id) { |
1285 // There are no DCHECK(udp_sockets_.Lookup(socket_id)) because it | 1286 // There are no DCHECK(udp_sockets_.Lookup(socket_id)) because it |
1286 // can be called before UDPSocketBind is called. | 1287 // can be called before UDPSocketBind is called. |
1287 render_view_->Send(new PpapiHostMsg_PPBUDPSocket_Close(socket_id)); | 1288 render_view_->Send(new PpapiHostMsg_PPBUDPSocket_Close(socket_id)); |
1288 if (udp_sockets_.Lookup(socket_id)) | 1289 if (udp_sockets_.Lookup(socket_id)) |
1289 udp_sockets_.Remove(socket_id); | 1290 udp_sockets_.Remove(socket_id); |
1290 } | 1291 } |
1291 | 1292 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1863 return render_view_->mouse_lock_dispatcher(); | 1864 return render_view_->mouse_lock_dispatcher(); |
1864 } | 1865 } |
1865 } | 1866 } |
1866 | 1867 |
1867 webkit_glue::ClipboardClient* | 1868 webkit_glue::ClipboardClient* |
1868 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1869 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1869 return new RendererClipboardClient; | 1870 return new RendererClipboardClient; |
1870 } | 1871 } |
1871 | 1872 |
1872 } // namespace content | 1873 } // namespace content |
OLD | NEW |