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

Unified Diff: net/dns/address_sorter_posix.h

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: rebase on r476634 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/cert/multi_threaded_cert_verifier.cc ('k') | net/dns/address_sorter_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/address_sorter_posix.h
diff --git a/net/dns/address_sorter_posix.h b/net/dns/address_sorter_posix.h
index e370f226003bb5a4f7f5a5f5447770694f03af98..b8f40d1dbda39e2c132d682a4fb17561a2d4a8f6 100644
--- a/net/dns/address_sorter_posix.h
+++ b/net/dns/address_sorter_posix.h
@@ -9,7 +9,7 @@
#include <vector>
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
#include "net/base/net_export.h"
@@ -24,7 +24,6 @@ class ClientSocketFactory;
// thread-safe and always completes synchronously.
class NET_EXPORT_PRIVATE AddressSorterPosix
: public AddressSorter,
- public base::NonThreadSafe,
public NetworkChangeNotifier::IPAddressObserver {
public:
// Generic policy entry.
@@ -85,6 +84,8 @@ class NET_EXPORT_PRIVATE AddressSorterPosix
PolicyTable label_table_;
PolicyTable ipv4_scope_table_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AddressSorterPosix);
};
« no previous file with comments | « net/cert/multi_threaded_cert_verifier.cc ('k') | net/dns/address_sorter_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698