| 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; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 private: | 141 private: |
| 142 File(const char* name, FileHandle* handle) : name_(name), handle_(handle) { } | 142 File(const char* name, FileHandle* handle) : name_(name), handle_(handle) { } |
| 143 void Close(); | 143 void Close(); |
| 144 | 144 |
| 145 static const int kClosedFd = -1; | 145 static const int kClosedFd = -1; |
| 146 | 146 |
| 147 const char* name_; | 147 const char* name_; |
| 148 // FileHandle is an OS specific class which stores data about the file. | 148 // FileHandle is an OS specific class which stores data about the file. |
| 149 FileHandle* handle_; // OS specific handle for the file. | 149 FileHandle* handle_; // OS specific handle for the file. |
| 150 | 150 |
| 151 // DISALLOW_COPY_AND_ASSIGN(File). | |
| 152 File(const File&); | |
| 153 void operator=(const File&); | |
| 154 | |
| 155 static dart::Mutex mutex_; | 151 static dart::Mutex mutex_; |
| 156 static int service_ports_size_; | 152 static int service_ports_size_; |
| 157 static Dart_Port* service_ports_; | 153 static Dart_Port* service_ports_; |
| 158 static int service_ports_index_; | 154 static int service_ports_index_; |
| 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(File); |
| 159 }; | 157 }; |
| 160 | 158 |
| 161 #endif // BIN_FILE_H_ | 159 #endif // BIN_FILE_H_ |
| OLD | NEW |