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> |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
12 | 12 |
13 #include "bin/builtin.h" | 13 #include "bin/builtin.h" |
14 #include "bin/dartutils.h" | 14 #include "bin/dartutils.h" |
15 #include "platform/globals.h" | |
16 #include "platform/thread.h" | |
17 | 15 |
18 | 16 |
19 namespace dart { | 17 namespace dart { |
20 namespace bin { | 18 namespace bin { |
21 | 19 |
22 // Forward declaration. | 20 // Forward declaration. |
23 class FileHandle; | 21 class FileHandle; |
24 | 22 |
25 class File { | 23 class File { |
26 public: | 24 public: |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // FileHandle is an OS specific class which stores data about the file. | 178 // FileHandle is an OS specific class which stores data about the file. |
181 FileHandle* handle_; // OS specific handle for the file. | 179 FileHandle* handle_; // OS specific handle for the file. |
182 | 180 |
183 DISALLOW_COPY_AND_ASSIGN(File); | 181 DISALLOW_COPY_AND_ASSIGN(File); |
184 }; | 182 }; |
185 | 183 |
186 } // namespace bin | 184 } // namespace bin |
187 } // namespace dart | 185 } // namespace dart |
188 | 186 |
189 #endif // BIN_FILE_H_ | 187 #endif // BIN_FILE_H_ |
OLD | NEW |