Add checks for valid close status and reason.

Check the status code sent by the renderer is valid. Also check that the
length of the close reason is 123 bytes or less.

BUG=230756
TEST=net_unittests --gtest_filter=WebSocketCommon*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230688 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 230688