Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7314)

Unified Diff: chrome/common/extensions/api/cast_channel.idl

Issue 393023003: Added connection timeout functionality to CastSocket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing initializer for CastSocket unit tests. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/cast_channel.idl
diff --git a/chrome/common/extensions/api/cast_channel.idl b/chrome/common/extensions/api/cast_channel.idl
index d034bf13790ecdd21526d68d184a7ad6ad5e58bf..9ea213688ffb296efffcf9ec462597d33405c6a7 100644
--- a/chrome/common/extensions/api/cast_channel.idl
+++ b/chrome/common/extensions/api/cast_channel.idl
@@ -42,6 +42,8 @@ namespace cast.channel {
invalid_message,
// An invalid channel id was passed.
invalid_channel_id,
+ // The connection could not be established before timing out.
+ connect_timeout,
// Unspecified error.
unknown
};
@@ -64,6 +66,11 @@ namespace cast.channel {
// The port number to connect to, 0-65535.
long port;
+ // The amount of time to wait in milliseconds before stopping the
+ // connection process. Timeouts are disabled if the value is zero.
+ // The default timeout is 8000ms.
+ long? timeout;
+
// The authentication method required for the channel.
ChannelAuthType auth;
};
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698