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

Unified Diff: net/socket/tcp_socket.h

Issue 188873004: Compile src/net for PNaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: net/socket/tcp_socket.h
diff --git a/net/socket/tcp_socket.h b/net/socket/tcp_socket.h
index 8b36fade758e05db222d9fa4e2ee739e110b2779..925f4e3884f0ed0c30c951f5191c188110083c50 100644
--- a/net/socket/tcp_socket.h
+++ b/net/socket/tcp_socket.h
@@ -8,7 +8,9 @@
#include "build/build_config.h"
#include "net/base/net_export.h"
-#if defined(OS_WIN)
+#if defined(OS_NACL)
+#include "net/socket/tcp_socket_nacl.h"
+#elif defined(OS_WIN)
#include "net/socket/tcp_socket_win.h"
#elif defined(OS_POSIX)
#include "net/socket/tcp_socket_libevent.h"
@@ -29,7 +31,9 @@ bool IsTCPFastOpenEnabled();
// class, unless a clear separation of client and server socket functionality is
// not suitable for your use case (e.g., a socket needs to be created and bound
// before you know whether it is a client or server socket).
-#if defined(OS_WIN)
+#if defined(OS_NACL)
+typedef TCPSocketNacl TCPSocket;
+#elif defined(OS_WIN)
typedef TCPSocketWin TCPSocket;
#elif defined(OS_POSIX)
typedef TCPSocketLibevent TCPSocket;
« net/net_nacl.gyp ('K') | « net/net_nacl.gyp ('k') | net/socket/tcp_socket_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698