gfe-relnote: Add NumRegisteredStreams interface to WriteScheduler and implements it in subclasses. No used in prod yet, not protected.
Also move WriteSchedulerType to third_party/spdy/spdy_protocol.h to allow it be used by QUIC.
PiperOrigin-RevId: 259786320
Change-Id: I71fd5b68be9c10bf47f576c3020af17f80212178
diff --git a/spdy/core/write_scheduler.h b/spdy/core/write_scheduler.h
index 7906ad7..98db442 100644
--- a/spdy/core/write_scheduler.h
+++ b/spdy/core/write_scheduler.h
@@ -150,6 +150,9 @@
// Returns true if stream with |stream_id| is ready.
virtual bool IsStreamReady(StreamIdType stream_id) const = 0;
+ // Returns the number of registered streams.
+ virtual size_t NumRegisteredStreams() const = 0;
+
// Returns summary of internal state, for logging/debugging.
virtual SpdyString DebugString() const = 0;
};