| OLD | NEW |
| 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 RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ | 5 #ifndef RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ |
| 6 #define RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ | 6 #define RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ |
| 7 | 7 |
| 8 #if defined(DART_IO_DISABLED) || !defined(DART_IO_SECURE_SOCKET_DISABLED) | 8 #if defined(DART_IO_DISABLED) || !defined(DART_IO_SECURE_SOCKET_DISABLED) |
| 9 #error "io_service_no_ssl.h can only be included on builds with IO enabled" | 9 #error "io_service_no_ssl.h can only be included on builds with IO enabled" |
| 10 #endif | 10 #endif |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 V(Socket, ReverseLookup, 30) \ | 52 V(Socket, ReverseLookup, 30) \ |
| 53 V(Directory, Create, 31) \ | 53 V(Directory, Create, 31) \ |
| 54 V(Directory, Delete, 32) \ | 54 V(Directory, Delete, 32) \ |
| 55 V(Directory, Exists, 33) \ | 55 V(Directory, Exists, 33) \ |
| 56 V(Directory, CreateTemp, 34) \ | 56 V(Directory, CreateTemp, 34) \ |
| 57 V(Directory, ListStart, 35) \ | 57 V(Directory, ListStart, 35) \ |
| 58 V(Directory, ListNext, 36) \ | 58 V(Directory, ListNext, 36) \ |
| 59 V(Directory, ListStop, 37) \ | 59 V(Directory, ListStop, 37) \ |
| 60 V(Directory, Rename, 38) | 60 V(Directory, Rename, 38) |
| 61 | 61 |
| 62 #define DECLARE_REQUEST(type, method, id) \ | 62 #define DECLARE_REQUEST(type, method, id) k##type##method##Request = id, |
| 63 k##type##method##Request = id, | |
| 64 | 63 |
| 65 class IOService { | 64 class IOService { |
| 66 public: | 65 public: |
| 67 enum { | 66 enum { IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) }; |
| 68 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) | |
| 69 }; | |
| 70 | 67 |
| 71 static Dart_Port GetServicePort(); | 68 static Dart_Port GetServicePort(); |
| 72 | 69 |
| 73 private: | 70 private: |
| 74 DISALLOW_ALLOCATION(); | 71 DISALLOW_ALLOCATION(); |
| 75 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); | 72 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); |
| 76 }; | 73 }; |
| 77 | 74 |
| 78 } // namespace bin | 75 } // namespace bin |
| 79 } // namespace dart | 76 } // namespace dart |
| 80 | 77 |
| 81 #endif // RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ | 78 #endif // RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ |
| OLD | NEW |