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

Unified Diff: net/http/http_network_session.h

Issue 2315213002: Temporary: Detect WebSocket destruction order problem (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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 9ae55047c04a2afb35dc5a6a98e7233731c77fb5..227022e75e69ed9597bf79be6b6b1aaaeb132f55 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -282,6 +282,10 @@ class NET_EXPORT HttpNetworkSession
SSLConfig* server_config,
SSLConfig* proxy_config) const;
+ // TODO(ricea): Remove this by October 2017.
+ void IncrementActiveWebSockets() { ++active_websockets_; }
+ void DecrementActiveWebSockets() { --active_websockets_; }
+
private:
friend class HttpNetworkSessionPeer;
@@ -316,6 +320,9 @@ class NET_EXPORT HttpNetworkSession
Params params_;
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
+
+ // TODO(ricea): Remove this by October 2017.
yhirano 2016/09/08 02:27:13 Do you mean Oct 2016? Ditto for all occurrences.
Adam Rice 2016/09/08 07:22:08 Wow. Okay. Yes. I meant 2016. Fixed.
+ int active_websockets_ = 0;
};
} // namespace net
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698