A few cleanups in the in-mem flip server:   * Refactor the first-read logic for the in-mem server.     Split out functions from the initial connection setup on first read.   * Fixed the SPDY-only (non-NPN negotiated) case.   * Hardened the server against invalid protocol attacks; would happily     crash when an invalid-looking frame arrived.
A few cleanups in the in-mem flip server:
  * Refactor the first-read logic for the in-mem server.
    Split out functions from the initial connection setup on first read.
  * Fixed the SPDY-only (non-NPN negotiated) case.
  * Hardened the server against invalid protocol attacks; would happily
    crash when an invalid-looking frame arrived.

BUG=none
TEST=self

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

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@72536 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser