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

Unified Diff: net/udp/udp_socket_win.h

Issue 10134008: Add bind(), recvFrom(), sendTo() for UDP socket. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: wip Created 8 years, 8 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/udp/udp_socket_win.h
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h
index d49f64d6523f01b9cc640a85f30e00451afd9118..f9ecd26f8975b5ba2def6c6003187acc8c4b6482 100644
--- a/net/udp/udp_socket_win.h
+++ b/net/udp/udp_socket_win.h
@@ -13,6 +13,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/win/object_watcher.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_export.h"
#include "net/base/rand_callback.h"
#include "net/base/ip_endpoint.h"
#include "net/base/io_buffer.h"
@@ -21,7 +22,10 @@
namespace net {
-class UDPSocketWin : public base::NonThreadSafe {
+// Disable warning non dll-interface class used as base for dll-interface class.
+#pragma warning (push)
+#pragma warning (disable:4275)
+class NET_EXPORT UDPSocketWin : public base::NonThreadSafe {
agl 2012/04/23 21:07:08 See NON_EXPORTED_BASE macro for this.
Peng 2012/04/24 15:07:14 Done.
public:
UDPSocketWin(DatagramSocket::BindType bind_type,
const RandIntCallback& rand_int_cb,
@@ -212,6 +216,7 @@ class UDPSocketWin : public base::NonThreadSafe {
DISALLOW_COPY_AND_ASSIGN(UDPSocketWin);
};
+#pragma warning (pop)
} // namespace net
« chrome/browser/extensions/api/socket/udp_socket_unittest.cc ('K') | « net/udp/udp_socket_libevent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698