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

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

Issue 10440097: Move socket API from experimental to dev channel and remove some dead code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move to dev channel Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // File-level comment to appease parser. Eventually this will not be necessary. 5 // File-level comment to appease parser. Eventually this will not be necessary.
6 6
7 namespace experimental.socket { 7 namespace socket {
8 enum SocketType { 8 enum SocketType {
9 tcp, 9 tcp,
10 udp 10 udp
11 }; 11 };
12 12
13 // The socket options. 13 // The socket options.
14 dictionary CreateOptions { 14 dictionary CreateOptions {
15 // The schema generator does not support dictionaries without any fields. 15 // The schema generator does not support dictionaries without any fields.
16 // Ignore this field. 16 // Ignore this field.
17 [nodoc] long? dummyValue; 17 [nodoc] long? dummyValue;
miket_OOO 2012/07/27 16:37:59 Would you please see whether we can get rid of thi
Peng 2012/07/27 19:08:42 Done.
18 }; 18 };
19 19
20 dictionary CreateInfo { 20 dictionary CreateInfo {
21 // The id of the newly created socket. 21 // The id of the newly created socket.
22 long socketId; 22 long socketId;
23 }; 23 };
24 24
25 callback CreateCallback = void (CreateInfo createInfo); 25 callback CreateCallback = void (CreateInfo createInfo);
26 26
27 callback ConnectCallback = void (long result); 27 callback ConnectCallback = void (long result);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Enable/disable Nagle algorithm. 158 // Enable/disable Nagle algorithm.
159 // |socketId| : The socketId. 159 // |socketId| : The socketId.
160 // |noDelay| : If true, disable Nagle algorithm. 160 // |noDelay| : If true, disable Nagle algorithm.
161 // |callback| : Called when the setNoDelay attempt is complete. 161 // |callback| : Called when the setNoDelay attempt is complete.
162 static void setNoDelay(long socketId, 162 static void setNoDelay(long socketId,
163 boolean noDelay, 163 boolean noDelay,
164 SetNoDelayCallback callback); 164 SetNoDelayCallback callback);
165 }; 165 };
166 166
167 }; 167 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/experimental_socket.idl ('k') | chrome/test/data/extensions/api_test/socket/api/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698