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

Unified Diff: net/http/http_network_session.h

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: another compile nit 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
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index d8e867fa0867ddbe5194ccd94ffa84e188abdf75..8efe9740de588269cc4e3a8bcf7926ae64cc1322 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/sequence_checker.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_export.h"
#include "net/dns/host_resolver.h"
@@ -73,9 +73,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:
struct NET_EXPORT Params {
Params();
@@ -321,6 +319,8 @@ class NET_EXPORT HttpNetworkSession
Params params_;
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698