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); |