Change names of static-related QuicSession methods.
Static stream map no longer exists, thus we don't need "dynamic" in some places.
gfe-relnote: code refactor. Not flag protected.
PiperOrigin-RevId: 257825927
Change-Id: Ic70c501afcefd57a3a9dde461e06313893b867eb
diff --git a/quic/core/http/quic_spdy_session.cc b/quic/core/http/quic_spdy_session.cc
index 701a4c5..3fe1f5c 100644
--- a/quic/core/http/quic_spdy_session.cc
+++ b/quic/core/http/quic_spdy_session.cc
@@ -343,7 +343,7 @@
for (auto const& kv : zombie_streams()) {
static_cast<QuicSpdyStream*>(kv.second.get())->ClearSession();
}
- for (auto const& kv : dynamic_streams()) {
+ for (auto const& kv : stream_map()) {
if (!kv.second->is_static()) {
static_cast<QuicSpdyStream*>(kv.second.get())->ClearSession();
}
@@ -743,11 +743,11 @@
bool QuicSpdySession::HasActiveRequestStreams() const {
// In the case where session is destructed by calling
- // dynamic_streams().clear(), we will have incorrect accounting here.
+ // stream_map().clear(), we will have incorrect accounting here.
// TODO(renjietang): Modify destructors and make this a DCHECK.
- if (static_cast<size_t>(dynamic_streams().size()) >
+ if (static_cast<size_t>(stream_map().size()) >
num_incoming_static_streams() + num_outgoing_static_streams()) {
- return dynamic_streams().size() - num_incoming_static_streams() -
+ return stream_map().size() - num_incoming_static_streams() -
num_outgoing_static_streams() >
0;
}