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

Unified Diff: net/spdy/spdy_session.cc

Issue 2351373003: Add methods in spdy/quic session to get stream id of pushed stream given the request url (Closed)
Patch Set: nits 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 | « net/spdy/spdy_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 6b3fc02627779424bf9b8aacd14e1e782ae75f29..fd211ed3c2e9fa0dcc236fec9819cdab67e39628 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -1702,10 +1702,6 @@ void SpdySession::LogAbandonedActiveStream(ActiveStreamMap::const_iterator it,
DCHECK_GT(it->first, 0u);
LogAbandonedStream(it->second.stream, status);
++streams_abandoned_count_;
- if (it->second.stream->type() == SPDY_PUSH_STREAM &&
- unclaimed_pushed_streams_.find(it->second.stream->url()) !=
- unclaimed_pushed_streams_.end()) {
- }
}
SpdyStreamId SpdySession::GetNewStreamId() {
@@ -1898,6 +1894,14 @@ void SpdySession::DeleteStream(std::unique_ptr<SpdyStream> stream, int status) {
}
}
+SpdyStreamId SpdySession::GetStreamIdForPush(const GURL& url) {
+ UnclaimedPushedStreamContainer::const_iterator unclaimed_it =
+ unclaimed_pushed_streams_.find(url);
+ if (unclaimed_it == unclaimed_pushed_streams_.end())
+ return 0;
+ return unclaimed_it->second.stream_id;
+}
+
base::WeakPtr<SpdyStream> SpdySession::GetActivePushStream(const GURL& url) {
UnclaimedPushedStreamContainer::const_iterator unclaimed_it =
unclaimed_pushed_streams_.find(url);
« no previous file with comments | « net/spdy/spdy_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698