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

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

Issue 15359007: Allow missing socketType in SocketInfo if socket is not connected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as per asargent Created 7 years, 6 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 | Annotate | Revision Log
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 namespace socket { 5 namespace socket {
6 enum SocketType { 6 enum SocketType {
7 tcp, 7 tcp,
8 udp 8 udp
9 }; 9 };
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 }; 103 };
104 104
105 callback RecvFromCallback = void (RecvFromInfo recvFromInfo); 105 callback RecvFromCallback = void (RecvFromInfo recvFromInfo);
106 106
107 callback SendToCallback = void (WriteInfo writeInfo); 107 callback SendToCallback = void (WriteInfo writeInfo);
108 108
109 callback SetKeepAliveCallback = void (boolean result); 109 callback SetKeepAliveCallback = void (boolean result);
110 110
111 callback SetNoDelayCallback = void (boolean result); 111 callback SetNoDelayCallback = void (boolean result);
112 112
113 callback GetInfoCallback = void (SocketInfo result); 113 callback GetInfoCallback = void (optional SocketInfo result);
asargent_no_longer_on_chrome 2013/05/29 21:31:07 You can actually leave this as non-optional, since
Bei Zhang 2013/05/29 22:14:51 Done.
114 114
115 callback GetNetworkCallback = void (NetworkInterface[] result); 115 callback GetNetworkCallback = void (NetworkInterface[] result);
116 116
117 callback JoinGroupCallback = void (long result); 117 callback JoinGroupCallback = void (long result);
118 118
119 callback LeaveGroupCallback = void (long result); 119 callback LeaveGroupCallback = void (long result);
120 120
121 callback SetMulticastTimeToLiveCallback = void (long result); 121 callback SetMulticastTimeToLiveCallback = void (long result);
122 122
123 callback SetMulticastLoopbackModeCallback = void (long result); 123 callback SetMulticastLoopbackModeCallback = void (long result);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 SetMulticastLoopbackModeCallback callback); 323 SetMulticastLoopbackModeCallback callback);
324 324
325 // Get the multicast group addresses the socket is currently joined to. 325 // Get the multicast group addresses the socket is currently joined to.
326 // |socketId| : The socketId. 326 // |socketId| : The socketId.
327 // |callback| : Called with an array of strings of the result. 327 // |callback| : Called with an array of strings of the result.
328 static void getJoinedGroups(long socketId, 328 static void getJoinedGroups(long socketId,
329 GetJoinedGroupsCallback callback); 329 GetJoinedGroupsCallback callback);
330 }; 330 };
331 331
332 }; 332 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_api.cc ('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