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

Unified 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: Add GetBoundAddress to retrieve address we bound to. Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
index b736ef5dbf6fe8d18226f784706503fda330414b..372ddb5b3a05d0554710d9d74bfe1a4ee02ccc5f 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -2033,13 +2033,15 @@ void PepperPluginDelegateImpl::OnTCPSocketWriteACK(uint32 plugin_dispatcher_id,
socket->OnWriteCompleted(succeeded, bytes_written);
}
-void PepperPluginDelegateImpl::OnUDPSocketBindACK(uint32 plugin_dispatcher_id,
- uint32 socket_id,
- bool succeeded) {
+void PepperPluginDelegateImpl::OnUDPSocketBindACK(
+ uint32 plugin_dispatcher_id,
+ uint32 socket_id,
+ bool succeeded,
+ const PP_NetAddress_Private& bound_addr) {
yzshen1 2012/02/06 06:51:27 Please use the same name as the declaration.
mtilburg1 2012/02/06 15:11:35 Done.
webkit::ppapi::PPB_UDPSocket_Private_Impl* socket =
udp_sockets_.Lookup(socket_id);
if (socket)
- socket->OnBindCompleted(succeeded);
+ socket->OnBindCompleted(succeeded, bound_addr);
}
void PepperPluginDelegateImpl::OnUDPSocketRecvFromACK(

Powered by Google App Engine
This is Rietveld 408576698