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

Side by Side Diff: extensions/common/api/sockets_tcp.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/socket.idl ('k') | extensions/common/api/sockets_tcp_server.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.sockets.tcp</code> API to send and receive data over the 5 // Use the <code>chrome.sockets.tcp</code> API to send and receive data over the
6 // network using TCP connections. This API supersedes the TCP functionality 6 // network using TCP connections. This API supersedes the TCP functionality
7 // previously found in the <code>chrome.socket</code> API. 7 // previously found in the <code>chrome.socket</code> API.
8 namespace sockets.tcp { 8 [use_movable_types=true] namespace sockets.tcp {
9 // The socket properties specified in the <code>create</code> or 9 // The socket properties specified in the <code>create</code> or
10 // <code>update</code> function. Each property is optional. If a property 10 // <code>update</code> function. Each property is optional. If a property
11 // value is not specified, a default value is used when calling 11 // value is not specified, a default value is used when calling
12 // <code>create</code>, or the existing value if preserved when calling 12 // <code>create</code>, or the existing value if preserved when calling
13 // <code>update</code>. 13 // <code>update</code>.
14 dictionary SocketProperties { 14 dictionary SocketProperties {
15 // Flag indicating if the socket is left open when the event page of 15 // Flag indicating if the socket is left open when the event page of
16 // the application is unloaded (see 16 // the application is unloaded (see
17 // <a href="http://developer.chrome.com/apps/app_lifecycle.html">Manage App 17 // <a href="http://developer.chrome.com/apps/app_lifecycle.html">Manage App
18 // Lifecycle</a>). The default value is "false." When the application is 18 // Lifecycle</a>). The default value is "false." When the application is
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 static void onReceive(ReceiveInfo info); 264 static void onReceive(ReceiveInfo info);
265 265
266 // Event raised when a network error occured while the runtime was waiting 266 // Event raised when a network error occured while the runtime was waiting
267 // for data on the socket address and port. Once this event is raised, the 267 // for data on the socket address and port. Once this event is raised, the
268 // socket is set to <code>paused</code> and no more <code>onReceive</code> 268 // socket is set to <code>paused</code> and no more <code>onReceive</code>
269 // events are raised for this socket. 269 // events are raised for this socket.
270 // |info| : The event data. 270 // |info| : The event data.
271 static void onReceiveError(ReceiveErrorInfo info); 271 static void onReceiveError(ReceiveErrorInfo info);
272 }; 272 };
273 }; 273 };
OLDNEW
« no previous file with comments | « extensions/common/api/socket.idl ('k') | extensions/common/api/sockets_tcp_server.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698