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

Unified Diff: net/http/http_network_session.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_network_layer.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 9e4a4841d60890e6796275bd639036e6e90d99ae..1225535f88bd9f7b598a949dac105aae4e32bf2b 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -20,7 +20,7 @@
#include "base/memory/memory_pressure_monitor.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "net/base/host_mapping_rules.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_export.h"
@@ -74,9 +74,7 @@ const uint32_t kSpdyMaxHeaderTableSize = 64 * 1024;
const uint32_t kSpdyMaxConcurrentPushedStreams = 1000;
// This class holds session objects used by HttpNetworkTransaction objects.
-class NET_EXPORT HttpNetworkSession
- : NON_EXPORTED_BASE(public base::NonThreadSafe),
- public base::MemoryCoordinatorClient {
+class NET_EXPORT HttpNetworkSession : public base::MemoryCoordinatorClient {
public:
// Self-contained structure with all the simple configuration options
// supported by the HttpNetworkSession.
@@ -338,6 +336,8 @@ class NET_EXPORT HttpNetworkSession
Context context_;
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
+
+ THREAD_CHECKER(thread_checker_);
};
} // namespace net
« no previous file with comments | « net/http/http_network_layer.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698