Check state in SocketStream delegate methods.
Check state in SocketStream delegate methods.

I suspect flaky failure in reload-crash.html was OnSentData is called when state_ has been changed to CLOSED while sending handshake message.

BUG=45720
TEST=none

Review URL: http://codereview.chromium.org/2845012

git-svn-id: http://src.chromium.org/svn/trunk/src@50087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 303b2edd607aca467d8d0af1e15cf531e4dc001d
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser