Previously, FailChannel() called OnDropChannel(). This resulted in the
wrong status code being reported to Javascript and an inability to
log failures to the console.

Make FailChannel() call OnFailChannel(). In addition, add console
messages to match the Blink-side implementation as closely as possible.

Relax the incoming Close frame code validation to match existing Chrome behaviour. Also remove "Internal Error" Close reason payload text that the Blink implementation doesn't send.

Add tests for the new console messages.

BUG=326899
TEST=net_unittests --gtest_filter=WebSocketChannel*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247189 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 247189
Add missing include-guard in window_targeter.h

TBR=ben@chromium.org

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

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