Chromium Code Reviews| 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 |