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

Side by Side Diff: runtime/bin/socket.h

Issue 81013002: Cleanup the getting and setting of the socket file descriptor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Correctly rebased Created 7 years 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
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/bin/socket.cc » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_SOCKET_H_ 5 #ifndef BIN_SOCKET_H_
6 #define BIN_SOCKET_H_ 6 #define BIN_SOCKET_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 static AddressList<InterfaceSocketAddress>* ListInterfaces( 195 static AddressList<InterfaceSocketAddress>* ListInterfaces(
196 int type, 196 int type,
197 OSError** os_error); 197 OSError** os_error);
198 198
199 static CObject* LookupRequest(const CObjectArray& request); 199 static CObject* LookupRequest(const CObjectArray& request);
200 static CObject* ListInterfacesRequest(const CObjectArray& request); 200 static CObject* ListInterfacesRequest(const CObjectArray& request);
201 static CObject* ReverseLookupRequest(const CObjectArray& request); 201 static CObject* ReverseLookupRequest(const CObjectArray& request);
202 202
203 static Dart_Port GetServicePort(); 203 static Dart_Port GetServicePort();
204 204
205 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id); 205 static void SetSocketIdNativeField(Dart_Handle socket, intptr_t id);
206 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id); 206 static intptr_t GetSocketIdNativeField(Dart_Handle socket);
207 207
208 private: 208 private:
209 static dart::Mutex* mutex_; 209 static dart::Mutex* mutex_;
210 static int service_ports_size_; 210 static int service_ports_size_;
211 static Dart_Port* service_ports_; 211 static Dart_Port* service_ports_;
212 static int service_ports_index_; 212 static int service_ports_index_;
213 213
214 DISALLOW_ALLOCATION(); 214 DISALLOW_ALLOCATION();
215 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); 215 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket);
216 }; 216 };
(...skipping 17 matching lines...) Expand all
234 234
235 private: 235 private:
236 DISALLOW_ALLOCATION(); 236 DISALLOW_ALLOCATION();
237 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
238 }; 238 };
239 239
240 } // namespace bin 240 } // namespace bin
241 } // namespace dart 241 } // namespace dart
242 242
243 #endif // BIN_SOCKET_H_ 243 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698