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

Side by Side Diff: extensions/common/api/socket.idl

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « extensions/common/api/serial.idl ('k') | extensions/common/api/sockets_tcp.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « extensions/common/api/serial.idl ('k') | extensions/common/api/sockets_tcp.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698