Fix handling of incorrect response data of webrequest handlers

An extension would crash if its blocking request handler returned invalid
reponses. With this CL, an error message is logged to the console and the
request gets canceled.

BUG=349139

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256455 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256455
Move sockets APIs out of src/chrome

This moves sockets APIs out of src/chrome and into
src/extensions. The IDLs and function
implementations are moved, and the groundwork is
set for moving additional APIs.

The API tests remain in src/chrome, and several
references to src/chrome still remain for
permissions/features/manifest stuff.

BUG=349787
TBR=erg@chromium.org for profiles change
TBR=jar@chromium.org for +net to //extensions/browser/DEPS

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

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