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

Unified Diff: ppapi/cpp/dev/tcp_socket_dev.h

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/tcp_socket_dev.h
diff --git a/ppapi/cpp/dev/tcp_socket_dev.h b/ppapi/cpp/dev/tcp_socket_dev.h
index e70e5b302b88b08294a2abd03810582b8fecf47e..663d9213b54dd36aabd8cd1a16b193a60aca27a1 100644
--- a/ppapi/cpp/dev/tcp_socket_dev.h
+++ b/ppapi/cpp/dev/tcp_socket_dev.h
@@ -6,7 +6,7 @@
#define PPAPI_CPP_DEV_TCP_SOCKET_DEV_H_
#include "ppapi/c/dev/ppb_tcp_socket_dev.h"
-#include "ppapi/cpp/dev/net_address_dev.h"
+#include "ppapi/cpp/net_address.h"
#include "ppapi/cpp/pass_ref.h"
#include "ppapi/cpp/resource.h"
@@ -62,7 +62,7 @@ class TCPSocket_Dev: public Resource {
/// Connects to the given address.
///
- /// @param[in] addr A <code>NetAddress_Dev</code> object.
+ /// @param[in] addr A <code>NetAddress</code> object.
/// @param[in] callback A <code>CompletionCallback</code> to be called upon
/// completion.
///
@@ -77,20 +77,20 @@ class TCPSocket_Dev: public Resource {
/// - <code>PP_ERROR_CONNECTION_FAILED</code>: the connection attempt failed.
/// - <code>PP_ERROR_CONNECTION_TIMEDOUT</code>: the connection attempt timed
/// out.
- int32_t Connect(const NetAddress_Dev& addr,
+ int32_t Connect(const NetAddress& addr,
const CompletionCallback& callback);
/// Gets the local address of the socket, if it has been connected.
///
- /// @return A <code>NetAddress_Dev</code> object. The object will be null
+ /// @return A <code>NetAddress</code> object. The object will be null
/// (i.e., is_null() returns true) on failure.
- NetAddress_Dev GetLocalAddress() const;
+ NetAddress GetLocalAddress() const;
/// Gets the remote address of the socket, if it has been connected.
///
- /// @return A <code>NetAddress_Dev</code> object. The object will be null
+ /// @return A <code>NetAddress</code> object. The object will be null
/// (i.e., is_null() returns true) on failure.
- NetAddress_Dev GetRemoteAddress() const;
+ NetAddress GetRemoteAddress() const;
/// Reads data from the socket. It can only be called after a successful
/// <code>Connect()</code> call. It may perform a partial read.
@@ -163,4 +163,4 @@ class TCPSocket_Dev: public Resource {
} // namespace pp
-#endif // PPAPI_CPP_DEV_TCP_SOCKET_DEV_H_
+#endif // PPAPI_CPP_DEV_TCP_SOCKET__DevDEV_H_

Powered by Google App Engine
This is Rietveld 408576698