[Remoting] Add generic JS typecheck functions to cleanup client_plugin.js.
commitef2f63388a322916314c332f5113b2fef9066789
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 12 Feb 2014 22:50:38 +0000 (12 22:50 +0000)
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 12 Feb 2014 22:50:38 +0000 (12 22:50 +0000)
treed9b895558678c79870ac80cc1a753cdb59169f82
parent0b024473aa7be95e830f9c9c971d9745f9004aa4
[Remoting] Add generic JS typecheck functions to cleanup client_plugin.js.

Also add isValidState and isValidConnectionError so that the code is more readable.

Also fix typo with supportedCapabilities

BUG=
R=jamiewalch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250816 0039d316-1c4b-4281-b951-d872f2087c98
remoting/remoting_webapp_files.gypi
remoting/webapp/client_plugin.js
remoting/webapp/client_session.js
remoting/webapp/host_controller.js
remoting/webapp/host_it2me_native_messaging.js
remoting/webapp/host_native_messaging.js
remoting/webapp/host_session.js
remoting/webapp/main.html
remoting/webapp/typecheck.js [new file with mode: 0644]