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

Unified Diff: ppapi/cpp/dev/udp_socket_dev.cc

Issue 17419008: Move PPB_NetAddress out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: ppapi/cpp/dev/udp_socket_dev.cc
diff --git a/ppapi/cpp/dev/udp_socket_dev.cc b/ppapi/cpp/dev/udp_socket_dev.cc
index dd8ffd0a2dcd5dccec5777ec0016e7141a2ff188..cc3d4b939f5ceaf30ac84327d017c07276ab3075 100644
--- a/ppapi/cpp/dev/udp_socket_dev.cc
+++ b/ppapi/cpp/dev/udp_socket_dev.cc
@@ -50,7 +50,7 @@ bool UDPSocket_Dev::IsAvailable() {
return has_interface<PPB_UDPSocket_Dev_0_1>();
}
-int32_t UDPSocket_Dev::Bind(const NetAddress_Dev& addr,
+int32_t UDPSocket_Dev::Bind(const NetAddress& addr,
const CompletionCallback& callback) {
if (has_interface<PPB_UDPSocket_Dev_0_1>()) {
return get_interface<PPB_UDPSocket_Dev_0_1>()->Bind(
@@ -59,19 +59,19 @@ int32_t UDPSocket_Dev::Bind(const NetAddress_Dev& addr,
return callback.MayForce(PP_ERROR_NOINTERFACE);
}
-NetAddress_Dev UDPSocket_Dev::GetBoundAddress() {
+NetAddress UDPSocket_Dev::GetBoundAddress() {
if (has_interface<PPB_UDPSocket_Dev_0_1>()) {
- return NetAddress_Dev(
+ return NetAddress(
PASS_REF,
get_interface<PPB_UDPSocket_Dev_0_1>()->GetBoundAddress(pp_resource()));
}
- return NetAddress_Dev();
+ return NetAddress();
}
int32_t UDPSocket_Dev::RecvFrom(
char* buffer,
int32_t num_bytes,
- const CompletionCallbackWithOutput<NetAddress_Dev>& callback) {
+ const CompletionCallbackWithOutput<NetAddress>& callback) {
if (has_interface<PPB_UDPSocket_Dev_0_1>()) {
return get_interface<PPB_UDPSocket_Dev_0_1>()->RecvFrom(
pp_resource(), buffer, num_bytes, callback.output(),
@@ -82,7 +82,7 @@ int32_t UDPSocket_Dev::RecvFrom(
int32_t UDPSocket_Dev::SendTo(const char* buffer,
int32_t num_bytes,
- const NetAddress_Dev& addr,
+ const NetAddress& addr,
const CompletionCallback& callback) {
if (has_interface<PPB_UDPSocket_Dev_0_1>()) {
return get_interface<PPB_UDPSocket_Dev_0_1>()->SendTo(

Powered by Google App Engine
This is Rietveld 408576698