Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 9212047: Add GetBoundAddress to PPB_UDPSocket_Private (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix build error after rebase Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_plugin_delegate_impl.h" 5 #include "content/renderer/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 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2130 void PepperPluginDelegateImpl::OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, 2130 void PepperPluginDelegateImpl::OnTCPSocketWriteACK(uint32 plugin_dispatcher_id,
2131 uint32 socket_id, 2131 uint32 socket_id,
2132 bool succeeded, 2132 bool succeeded,
2133 int32_t bytes_written) { 2133 int32_t bytes_written) {
2134 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket = 2134 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket =
2135 tcp_sockets_.Lookup(socket_id); 2135 tcp_sockets_.Lookup(socket_id);
2136 if (socket) 2136 if (socket)
2137 socket->OnWriteCompleted(succeeded, bytes_written); 2137 socket->OnWriteCompleted(succeeded, bytes_written);
2138 } 2138 }
2139 2139
2140 void PepperPluginDelegateImpl::OnUDPSocketBindACK(uint32 plugin_dispatcher_id, 2140 void PepperPluginDelegateImpl::OnUDPSocketBindACK(
2141 uint32 socket_id, 2141 uint32 plugin_dispatcher_id,
2142 bool succeeded) { 2142 uint32 socket_id,
2143 bool succeeded,
2144 const PP_NetAddress_Private& addr) {
2143 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket = 2145 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket =
2144 udp_sockets_.Lookup(socket_id); 2146 udp_sockets_.Lookup(socket_id);
2145 if (socket) 2147 if (socket)
2146 socket->OnBindCompleted(succeeded); 2148 socket->OnBindCompleted(succeeded, addr);
2147 } 2149 }
2148 2150
2149 void PepperPluginDelegateImpl::OnUDPSocketRecvFromACK( 2151 void PepperPluginDelegateImpl::OnUDPSocketRecvFromACK(
2150 uint32 plugin_dispatcher_id, 2152 uint32 plugin_dispatcher_id,
2151 uint32 socket_id, 2153 uint32 socket_id,
2152 bool succeeded, 2154 bool succeeded,
2153 const std::string& data, 2155 const std::string& data,
2154 const PP_NetAddress_Private& remote_addr) { 2156 const PP_NetAddress_Private& remote_addr) {
2155 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket = 2157 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket =
2156 udp_sockets_.Lookup(socket_id); 2158 udp_sockets_.Lookup(socket_id);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 void PepperPluginDelegateImpl::UnSetAndDeleteLockTargetAdapter( 2234 void PepperPluginDelegateImpl::UnSetAndDeleteLockTargetAdapter(
2233 webkit::ppapi::PluginInstance* instance) { 2235 webkit::ppapi::PluginInstance* instance) {
2234 LockTargetMap::iterator it = mouse_lock_instances_.find(instance); 2236 LockTargetMap::iterator it = mouse_lock_instances_.find(instance);
2235 if (it != mouse_lock_instances_.end()) { 2237 if (it != mouse_lock_instances_.end()) {
2236 MouseLockDispatcher::LockTarget* target = it->second; 2238 MouseLockDispatcher::LockTarget* target = it->second;
2237 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 2239 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
2238 delete target; 2240 delete target;
2239 mouse_lock_instances_.erase(it); 2241 mouse_lock_instances_.erase(it);
2240 } 2242 }
2241 } 2243 }
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.h ('k') | ppapi/api/private/ppb_udp_socket_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698