Added connection timeout functionality to CastSocket.
commitf5a2563dc374d8581a96b456d7d4ef1a6ee780a8
authorkmarshall@chromium.org <kmarshall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Jul 2014 02:28:54 +0000 (25 02:28 +0000)
committerkmarshall@chromium.org <kmarshall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Jul 2014 02:28:54 +0000 (25 02:28 +0000)
treeb4ffc9fa05d2260bae270b6011f1c9731aa8c25e
parentcb425ba9d284947985cf19dcb6e55e770e771932
Added connection timeout functionality to CastSocket.
Added a default timeout interval (8s) to Cast API. Will expose to callers in a followup CL. 8s seconds was selected (rather arbitrarily) to match cloudview.sender.ChannelService.CHANNEL_CREATION_TIMEOUT_ from the extension.

Miscellaneous minor doc fixes, and lint-friendly cleanups.

BUG=335221
R=mfoltz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285455 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
chrome/browser/extensions/api/cast_channel/cast_channel_api.h
chrome/browser/extensions/api/cast_channel/cast_channel_apitest.cc
chrome/browser/extensions/api/cast_channel/cast_socket.cc
chrome/browser/extensions/api/cast_channel/cast_socket.h
chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc
chrome/common/extensions/api/cast_channel.idl