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

Unified Diff: ppapi/api/private/ppb_udp_socket_private.idl

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/private/ppb_udp_socket_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_udp_socket_private.idl
diff --git a/ppapi/api/private/ppb_udp_socket_private.idl b/ppapi/api/private/ppb_udp_socket_private.idl
index 4babbb4a4dbd915a962d354947fd3f986b5d4823..083c33d1991a31f8b41ffd978b3b2d2425f238cc 100644
--- a/ppapi/api/private/ppb_udp_socket_private.idl
+++ b/ppapi/api/private/ppb_udp_socket_private.idl
@@ -8,7 +8,8 @@
*/
label Chrome {
- M17 = 0.2
+ M17 = 0.2,
+ M19 = 0.3
};
interface PPB_UDPSocket_Private {
@@ -27,6 +28,14 @@ interface PPB_UDPSocket_Private {
[in] PP_NetAddress_Private addr,
[in] PP_CompletionCallback callback);
+ /* Returns the address that the socket has bound to. A successful
+ * call to Bind must be called first. Returns PP_FALSE if Bind
+ * fails, or if Close has been called.
+ */
+ [version=0.3]
+ PP_Bool GetBoundAddress([in] PP_Resource udp_socket,
+ [out] PP_NetAddress_Private addr);
+
/* Performs a non-blocking recvfrom call on socket.
* Bind must be called first. |callback| is invoked when recvfrom
* reads data. You must call GetRecvFromAddress to recover the
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/private/ppb_udp_socket_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698