| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.socket</code> API to send and receive data over the | 5 // Use the <code>chrome.socket</code> API to send and receive data over the |
| 6 // network using TCP and UDP connections. <b>Note:</b> Starting with Chrome 33, | 6 // network using TCP and UDP connections. <b>Note:</b> Starting with Chrome 33, |
| 7 // this API is deprecated in favor of the $(ref:sockets.udp), $(ref:sockets.tcp)
and | 7 // this API is deprecated in favor of the $(ref:sockets.udp), $(ref:sockets.tcp)
and |
| 8 // $(ref:sockets.tcpServer) APIs. | 8 // $(ref:sockets.tcpServer) APIs. |
| 9 namespace socket { | 9 [use_movable_types=true] namespace socket { |
| 10 enum SocketType { | 10 enum SocketType { |
| 11 tcp, | 11 tcp, |
| 12 udp | 12 udp |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 // The socket options. | 15 // The socket options. |
| 16 dictionary CreateOptions { | 16 dictionary CreateOptions { |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 dictionary CreateInfo { | 19 dictionary CreateInfo { |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Start a TLS client connection over a connected TCP client socket. | 351 // Start a TLS client connection over a connected TCP client socket. |
| 352 // |socketId| : The connected socket to use. | 352 // |socketId| : The connected socket to use. |
| 353 // |options| : Constraints and parameters for the TLS connection. | 353 // |options| : Constraints and parameters for the TLS connection. |
| 354 // |callback| : Called when the TLS connection attempt is complete. | 354 // |callback| : Called when the TLS connection attempt is complete. |
| 355 static void secure(long socketId, | 355 static void secure(long socketId, |
| 356 optional SecureOptions options, | 356 optional SecureOptions options, |
| 357 SecureCallback callback); | 357 SecureCallback callback); |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 }; | 360 }; |
| OLD | NEW |