Chromium Code Reviews| Index: chrome/common/extensions/api/sockets_tcp.idl |
| diff --git a/chrome/common/extensions/api/sockets_tcp.idl b/chrome/common/extensions/api/sockets_tcp.idl |
| index f6cbc5128875da2598784671fc6cb174e1ba7b29..a0e72b9ea4f4379148d2fc381ff68fe990b94c60 100644 |
| --- a/chrome/common/extensions/api/sockets_tcp.idl |
| +++ b/chrome/common/extensions/api/sockets_tcp.idl |
| @@ -80,6 +80,17 @@ namespace sockets.tcp { |
| // A negative value indicates an error. |
| callback SetNoDelayCallback = void (long result); |
| + dictionary TLSVersionConstraints { |
| + DOMString? min; |
| + DOMString? max; |
| + }; |
| + |
| + dictionary SecureOptions { |
| + TLSVersionConstraints? tlsVersion; |
| + }; |
| + |
| + callback SecureCallback = void (long result); |
| + |
| // Result of the <code>getInfo</code> method. |
| dictionary SocketInfo { |
| // The socket identifier. |
| @@ -235,6 +246,14 @@ namespace sockets.tcp { |
| // Retrieves the list of currently opened sockets owned by the application. |
| // |callback| : Called when the list of sockets is available. |
| static void getSockets(GetSocketsCallback callback); |
| + |
| + // Start a TLS client connection over the socket. |
| + // |socketId| : The existing, connected socket to use. |
| + // |options| : Constraints and parameters for the TLS connection. |
| + // |callback| : Called when the connection attempt is complete. |
| + static void secure(long socketId, |
| + optional SecureOptions options, |
| + SecureCallback callback); |
|
rpaquay
2013/12/16 20:18:46
nit: can you move this method between "disconnect"
lally
2013/12/16 22:20:07
Done.
|
| }; |
| interface Events { |