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 BIN_IO_SERVICE_H_ | 5 #ifndef BIN_IO_SERVICE_H_ |
6 #define BIN_IO_SERVICE_H_ | 6 #define BIN_IO_SERVICE_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 V(File, Type, 23) \ | 40 V(File, Type, 23) \ |
41 V(File, Identical, 24) \ | 41 V(File, Identical, 24) \ |
42 V(File, Stat, 25) \ | 42 V(File, Stat, 25) \ |
43 V(Socket, Lookup, 26) \ | 43 V(Socket, Lookup, 26) \ |
44 V(Socket, ListInterfaces, 27) \ | 44 V(Socket, ListInterfaces, 27) \ |
45 V(Socket, ReverseLookup, 28) \ | 45 V(Socket, ReverseLookup, 28) \ |
46 V(Directory, Create, 29) \ | 46 V(Directory, Create, 29) \ |
47 V(Directory, Delete, 30) \ | 47 V(Directory, Delete, 30) \ |
48 V(Directory, Exists, 31) \ | 48 V(Directory, Exists, 31) \ |
49 V(Directory, CreateTemp, 32) \ | 49 V(Directory, CreateTemp, 32) \ |
50 V(Directory, CreateSystemTemp, 33) \ | 50 V(Directory, ListStart, 33) \ |
51 V(Directory, ListStart, 34) \ | 51 V(Directory, ListNext, 34) \ |
52 V(Directory, ListNext, 35) \ | 52 V(Directory, ListStop, 35) \ |
53 V(Directory, ListStop, 36) \ | 53 V(Directory, Rename, 36) \ |
54 V(Directory, Rename, 37) \ | 54 V(SSLFilter, ProcessFilter, 37) |
55 V(SSLFilter, ProcessFilter, 38) | |
56 | 55 |
57 #define DECLARE_REQUEST(type, method, id) \ | 56 #define DECLARE_REQUEST(type, method, id) \ |
58 k##type##method##Request = id, | 57 k##type##method##Request = id, |
59 | 58 |
60 class IOService { | 59 class IOService { |
61 public: | 60 public: |
62 enum { | 61 enum { |
63 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) | 62 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) |
64 }; | 63 }; |
65 | 64 |
66 static Dart_Port GetServicePort(); | 65 static Dart_Port GetServicePort(); |
67 }; | 66 }; |
68 | 67 |
69 } // namespace bin | 68 } // namespace bin |
70 } // namespace dart | 69 } // namespace dart |
71 | 70 |
72 #endif // BIN_IO_SERVICE_H_ | 71 #endif // BIN_IO_SERVICE_H_ |
OLD | NEW |