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: http://src.chromium.org/svn/trunk/src@72536 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: b1fc090b45d7fe99c5e56bd338442f98e8ab0bab
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