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

Unified Diff: ppapi/shared_impl/private/udp_socket_private_impl.h

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 | « ppapi/proxy/ppb_udp_socket_private_proxy.cc ('k') | ppapi/shared_impl/private/udp_socket_private_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/udp_socket_private_impl.h
diff --git a/ppapi/shared_impl/private/udp_socket_private_impl.h b/ppapi/shared_impl/private/udp_socket_private_impl.h
index 01242c12b3cf4777ec2c8e086ee51984c2411640..bb8a80ec3346aecec9f913cdf494a191ba22cf3c 100644
--- a/ppapi/shared_impl/private/udp_socket_private_impl.h
+++ b/ppapi/shared_impl/private/udp_socket_private_impl.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -42,6 +42,7 @@ class PPAPI_SHARED_EXPORT UDPSocketPrivateImpl
// PPB_UDPSocket_Private_API implementation.
virtual int32_t Bind(const PP_NetAddress_Private* addr,
PP_CompletionCallback callback) OVERRIDE;
+ virtual PP_Bool GetBoundAddress(PP_NetAddress_Private* addr) OVERRIDE;
virtual int32_t RecvFrom(char* buffer,
int32_t num_bytes,
PP_CompletionCallback callback) OVERRIDE;
@@ -53,7 +54,8 @@ class PPAPI_SHARED_EXPORT UDPSocketPrivateImpl
virtual void Close() OVERRIDE;
// Notifications from the proxy.
- void OnBindCompleted(bool succeeded);
+ void OnBindCompleted(bool succeeded,
+ const PP_NetAddress_Private& bound_addr);
void OnRecvFromCompleted(bool succeeded,
const std::string& data,
const PP_NetAddress_Private& addr);
@@ -84,6 +86,7 @@ class PPAPI_SHARED_EXPORT UDPSocketPrivateImpl
int32_t bytes_to_read_;
PP_NetAddress_Private recvfrom_addr_;
+ PP_NetAddress_Private bound_addr_;
DISALLOW_COPY_AND_ASSIGN(UDPSocketPrivateImpl);
};
« no previous file with comments | « ppapi/proxy/ppb_udp_socket_private_proxy.cc ('k') | ppapi/shared_impl/private/udp_socket_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698