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

Unified Diff: net/socket/udp_socket_posix.h

Issue 2905183002: Remove deprecated NonThreadSafe usage in net\socket. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « net/socket/tcp_socket_win.cc ('k') | net/socket/udp_socket_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/udp_socket_posix.h
diff --git a/net/socket/udp_socket_posix.h b/net/socket/udp_socket_posix.h
index ba42e04430cac96328201d18557a543138939598..c4a3b56338111c39f5489de0469e9b0b58cfc345 100644
--- a/net/socket/udp_socket_posix.h
+++ b/net/socket/udp_socket_posix.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "net/base/address_family.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
@@ -31,7 +31,7 @@ class IPAddress;
class NetLog;
struct NetLogSource;
-class NET_EXPORT UDPSocketPosix : public base::NonThreadSafe {
+class NET_EXPORT UDPSocketPosix {
public:
UDPSocketPosix(DatagramSocket::BindType bind_type,
const RandIntCallback& rand_int_cb,
@@ -321,6 +321,8 @@ class NET_EXPORT UDPSocketPosix : public base::NonThreadSafe {
// Network that this socket is bound to via BindToNetwork().
NetworkChangeNotifier::NetworkHandle bound_network_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(UDPSocketPosix);
};
« no previous file with comments | « net/socket/tcp_socket_win.cc ('k') | net/socket/udp_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698