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

Unified Diff: net/http/http_network_layer.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/http/http_cache.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.h
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h
index 86679ddb0026178c1ab709034630545ae24f8e4d..c46b50edafe3772754fe728083904a207feddc7b 100644
--- a/net/http/http_network_layer.h
+++ b/net/http/http_network_layer.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/power_monitor/power_observer.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "net/base/net_export.h"
#include "net/http/http_transaction_factory.h"
@@ -20,10 +20,8 @@ namespace net {
class HttpNetworkSession;
-class NET_EXPORT HttpNetworkLayer
- : public HttpTransactionFactory,
- public base::PowerObserver,
- NON_EXPORTED_BASE(public base::NonThreadSafe) {
+class NET_EXPORT HttpNetworkLayer : public HttpTransactionFactory,
+ public base::PowerObserver {
public:
// Construct a HttpNetworkLayer with an existing HttpNetworkSession which
// contains a valid ProxyService. The HttpNetworkLayer must be destroyed
@@ -45,6 +43,8 @@ class NET_EXPORT HttpNetworkLayer
HttpNetworkSession* const session_;
bool suspended_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(HttpNetworkLayer);
};
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698