Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 typedef signed __int64 int64_t; | 9 typedef signed __int64 int64_t; |
| 10 typedef unsigned __int8 uint8_t; | 10 typedef unsigned __int8 uint8_t; |
| 11 #else | 11 #else |
| 12 #include <stdint.h> | 12 #include <stdint.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include <stdlib.h> | 15 #include <stdlib.h> |
| 16 #include <string.h> | 16 #include <string.h> |
| 17 #include <stdio.h> | 17 #include <stdio.h> |
| 18 #include <sys/types.h> | 18 #include <sys/types.h> |
| 19 | 19 |
| 20 #include "bin/builtin.h" | 20 #include "bin/builtin.h" |
| 21 #include "bin/dartutils.h" | 21 #include "bin/dartutils.h" |
| 22 #include "bin/utils.h" | |
|
Mads Ager (google)
2012/03/13 10:56:17
Can we remove this from here? Nothing seems to use
Søren Gjesse
2012/03/13 12:39:49
Done.
| |
| 22 #include "platform/globals.h" | 23 #include "platform/globals.h" |
| 23 #include "platform/thread.h" | 24 #include "platform/thread.h" |
| 24 | 25 |
| 25 // Forward declaration. | 26 // Forward declaration. |
| 26 class FileHandle; | 27 class FileHandle; |
| 27 | 28 |
| 28 class File { | 29 class File { |
| 29 public: | 30 public: |
| 30 enum FileOpenMode { | 31 enum FileOpenMode { |
| 31 kRead = 0, | 32 kRead = 0, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 File(const File&); | 147 File(const File&); |
| 147 void operator=(const File&); | 148 void operator=(const File&); |
| 148 | 149 |
| 149 static dart::Mutex mutex_; | 150 static dart::Mutex mutex_; |
| 150 static int service_ports_size_; | 151 static int service_ports_size_; |
| 151 static Dart_Port* service_ports_; | 152 static Dart_Port* service_ports_; |
| 152 static int service_ports_index_; | 153 static int service_ports_index_; |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 #endif // BIN_FILE_H_ | 156 #endif // BIN_FILE_H_ |
| OLD | NEW |