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

Unified Diff: net/dns/host_cache.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/dns/dns_transaction.cc ('k') | net/dns/host_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_cache.h
diff --git a/net/dns/host_cache.h b/net/dns/host_cache.h
index c0ba45674d3890b27bffe2db661f7d70b60b3327..efc79980c104f2f4440b5c813a452c76c506445e 100644
--- a/net/dns/host_cache.h
+++ b/net/dns/host_cache.h
@@ -15,7 +15,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "net/base/address_family.h"
#include "net/base/address_list.h"
@@ -30,7 +30,7 @@ class ListValue;
namespace net {
// Cache used by HostResolver to map hostnames to their resolved result.
-class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
+class NET_EXPORT HostCache {
public:
struct Key {
Key(const std::string& hostname, AddressFamily address_family,
@@ -219,6 +219,8 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
int network_changes_;
EvictionCallback eviction_callback_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(HostCache);
};
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | net/dns/host_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698