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_FILE_H_ | 5 #ifndef BIN_FILE_H_ |
6 #define BIN_FILE_H_ | 6 #define BIN_FILE_H_ |
7 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 kSocket = 3, | 60 kSocket = 3, |
61 kOther = 4 | 61 kOther = 4 |
62 }; | 62 }; |
63 | 63 |
64 enum FileRequest { | 64 enum FileRequest { |
65 kExistsRequest = 0, | 65 kExistsRequest = 0, |
66 kCreateRequest = 1, | 66 kCreateRequest = 1, |
67 kDeleteRequest = 2, | 67 kDeleteRequest = 2, |
68 kRenameRequest = 3, | 68 kRenameRequest = 3, |
69 kOpenRequest = 4, | 69 kOpenRequest = 4, |
70 kFullPathRequest = 5, | 70 kResolveSymbolicLinksRequest = 5, |
71 kCloseRequest = 6, | 71 kCloseRequest = 6, |
72 kPositionRequest = 7, | 72 kPositionRequest = 7, |
73 kSetPositionRequest = 8, | 73 kSetPositionRequest = 8, |
74 kTruncateRequest = 9, | 74 kTruncateRequest = 9, |
75 kLengthRequest = 10, | 75 kLengthRequest = 10, |
76 kLengthFromPathRequest = 11, | 76 kLengthFromPathRequest = 11, |
77 kLastModifiedRequest = 12, | 77 kLastModifiedRequest = 12, |
78 kFlushRequest = 13, | 78 kFlushRequest = 13, |
79 kReadByteRequest = 14, | 79 kReadByteRequest = 14, |
80 kWriteByteRequest = 15, | 80 kWriteByteRequest = 15, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 static NativeService file_service_; | 184 static NativeService file_service_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(File); | 186 DISALLOW_COPY_AND_ASSIGN(File); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace bin | 189 } // namespace bin |
190 } // namespace dart | 190 } // namespace dart |
191 | 191 |
192 #endif // BIN_FILE_H_ | 192 #endif // BIN_FILE_H_ |
OLD | NEW |