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

Unified Diff: net/socket/udp_socket_win.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/udp_socket_posix.cc ('k') | net/socket/udp_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/udp_socket_win.h
diff --git a/net/socket/udp_socket_win.h b/net/socket/udp_socket_win.h
index 9baeb7ba2def47666108f1203b5463fe2f05923a..d7f8419a1e737970f8aba3b39a3ca796425c9946 100644
--- a/net/socket/udp_socket_win.h
+++ b/net/socket/udp_socket_win.h
@@ -14,7 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "base/win/object_watcher.h"
#include "base/win/scoped_handle.h"
#include "net/base/address_family.h"
@@ -35,8 +35,7 @@ class NetLog;
struct NetLogSource;
class NET_EXPORT UDPSocketWin
- : NON_EXPORTED_BASE(public base::NonThreadSafe),
- NON_EXPORTED_BASE(public base::win::ObjectWatcher::Delegate) {
+ : NON_EXPORTED_BASE(public base::win::ObjectWatcher::Delegate) {
public:
UDPSocketWin(DatagramSocket::BindType bind_type,
const RandIntCallback& rand_int_cb,
@@ -325,6 +324,8 @@ class NET_EXPORT UDPSocketWin
HANDLE qos_handle_;
QOS_FLOWID qos_flow_id_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(UDPSocketWin);
};
« no previous file with comments | « net/socket/udp_socket_posix.cc ('k') | net/socket/udp_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698