Check if |this| is valid after calling SpdyStream::DecreaseRecvWindowSize.
commitf321c39a2f0c7d749f0ce311fa08681e0f835d47
authorbnc <bnc@chromium.org>
Thu, 23 Apr 2015 19:21:14 +0000 (23 12:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 19:21:24 +0000 (23 19:21 +0000)
tree20a46844e56cd859462af12d64b5d907eefe3d67
parent10a85da648a9556e584036e4b58ac21c0478123d
Check if |this| is valid after calling SpdyStream::DecreaseRecvWindowSize.

Check if |this| is valid after calling
SpdyStream::DecreaseRecvWindowSize() may close the stream on a flow control
error, therefore each caller has to check if |this| is still valid before
accessing other methods/members.  This CL also adds regression test in Patch Set
1, see trybot output for failed test.

BUG=478841

Review URL: https://codereview.chromium.org/1100793002

Cr-Commit-Position: refs/heads/master@{#326603}
net/spdy/spdy_session_unittest.cc
net/spdy/spdy_stream.cc
net/spdy/spdy_stream.h