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_H_ | 5 #ifndef RUNTIME_BIN_IO_SERVICE_H_ |
6 #define RUNTIME_BIN_IO_SERVICE_H_ | 6 #define RUNTIME_BIN_IO_SERVICE_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.h can only be included on builds with IO and SSL enabled" | 9 #error "io_service.h can only be included on builds with IO and SSL enabled" |
10 #endif | 10 #endif |
(...skipping 12 matching lines...) Expand all Loading... |
23 V(File, Rename, 3) \ | 23 V(File, Rename, 3) \ |
24 V(File, Copy, 4) \ | 24 V(File, Copy, 4) \ |
25 V(File, Open, 5) \ | 25 V(File, Open, 5) \ |
26 V(File, ResolveSymbolicLinks, 6) \ | 26 V(File, ResolveSymbolicLinks, 6) \ |
27 V(File, Close, 7) \ | 27 V(File, Close, 7) \ |
28 V(File, Position, 8) \ | 28 V(File, Position, 8) \ |
29 V(File, SetPosition, 9) \ | 29 V(File, SetPosition, 9) \ |
30 V(File, Truncate, 10) \ | 30 V(File, Truncate, 10) \ |
31 V(File, Length, 11) \ | 31 V(File, Length, 11) \ |
32 V(File, LengthFromPath, 12) \ | 32 V(File, LengthFromPath, 12) \ |
33 V(File, LastModified, 13) \ | 33 V(File, LastAccessed, 13) \ |
34 V(File, Flush, 14) \ | 34 V(File, SetLastAccessed, 14) \ |
35 V(File, ReadByte, 15) \ | 35 V(File, LastModified, 15) \ |
36 V(File, WriteByte, 16) \ | 36 V(File, SetLastModified, 16) \ |
37 V(File, Read, 17) \ | 37 V(File, Flush, 17) \ |
38 V(File, ReadInto, 18) \ | 38 V(File, ReadByte, 18) \ |
39 V(File, WriteFrom, 19) \ | 39 V(File, WriteByte, 19) \ |
40 V(File, CreateLink, 20) \ | 40 V(File, Read, 20) \ |
41 V(File, DeleteLink, 21) \ | 41 V(File, ReadInto, 21) \ |
42 V(File, RenameLink, 22) \ | 42 V(File, WriteFrom, 22) \ |
43 V(File, LinkTarget, 23) \ | 43 V(File, CreateLink, 23) \ |
44 V(File, Type, 24) \ | 44 V(File, DeleteLink, 24) \ |
45 V(File, Identical, 25) \ | 45 V(File, RenameLink, 25) \ |
46 V(File, Stat, 26) \ | 46 V(File, LinkTarget, 26) \ |
47 V(File, Lock, 27) \ | 47 V(File, Type, 27) \ |
48 V(Socket, Lookup, 28) \ | 48 V(File, Identical, 28) \ |
49 V(Socket, ListInterfaces, 29) \ | 49 V(File, Stat, 29) \ |
50 V(Socket, ReverseLookup, 30) \ | 50 V(File, Lock, 30) \ |
51 V(Directory, Create, 31) \ | 51 V(Socket, Lookup, 31) \ |
52 V(Directory, Delete, 32) \ | 52 V(Socket, ListInterfaces, 32) \ |
53 V(Directory, Exists, 33) \ | 53 V(Socket, ReverseLookup, 33) \ |
54 V(Directory, CreateTemp, 34) \ | 54 V(Directory, Create, 34) \ |
55 V(Directory, ListStart, 35) \ | 55 V(Directory, Delete, 35) \ |
56 V(Directory, ListNext, 36) \ | 56 V(Directory, Exists, 36) \ |
57 V(Directory, ListStop, 37) \ | 57 V(Directory, CreateTemp, 37) \ |
58 V(Directory, Rename, 38) \ | 58 V(Directory, ListStart, 38) \ |
59 V(SSLFilter, ProcessFilter, 39) | 59 V(Directory, ListNext, 39) \ |
| 60 V(Directory, ListStop, 40) \ |
| 61 V(Directory, Rename, 41) \ |
| 62 V(SSLFilter, ProcessFilter, 42) |
60 | 63 |
61 #define DECLARE_REQUEST(type, method, id) k##type##method##Request = id, | 64 #define DECLARE_REQUEST(type, method, id) k##type##method##Request = id, |
62 | 65 |
63 class IOService { | 66 class IOService { |
64 public: | 67 public: |
65 enum { IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) }; | 68 enum { IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) }; |
66 | 69 |
67 static Dart_Port GetServicePort(); | 70 static Dart_Port GetServicePort(); |
68 | 71 |
69 private: | 72 private: |
70 DISALLOW_ALLOCATION(); | 73 DISALLOW_ALLOCATION(); |
71 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); | 74 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); |
72 }; | 75 }; |
73 | 76 |
74 } // namespace bin | 77 } // namespace bin |
75 } // namespace dart | 78 } // namespace dart |
76 | 79 |
77 #endif // RUNTIME_BIN_IO_SERVICE_H_ | 80 #endif // RUNTIME_BIN_IO_SERVICE_H_ |
OLD | NEW |