| 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 part of dart.io; | 5 part of dart.io; | 
| 6 | 6 | 
| 7 // Read the file in blocks of size 64k. | 7 // Read the file in blocks of size 64k. | 
| 8 const int _BLOCK_SIZE = 64 * 1024; | 8 const int _BLOCK_SIZE = 64 * 1024; | 
| 9 | 9 | 
| 10 | 10 | 
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 193 const int _READ_BYTE_REQUEST = 14; | 193 const int _READ_BYTE_REQUEST = 14; | 
| 194 const int _WRITE_BYTE_REQUEST = 15; | 194 const int _WRITE_BYTE_REQUEST = 15; | 
| 195 const int _READ_REQUEST = 16; | 195 const int _READ_REQUEST = 16; | 
| 196 const int _READ_LIST_REQUEST = 17; | 196 const int _READ_LIST_REQUEST = 17; | 
| 197 const int _WRITE_LIST_REQUEST = 18; | 197 const int _WRITE_LIST_REQUEST = 18; | 
| 198 const int _CREATE_LINK_REQUEST = 19; | 198 const int _CREATE_LINK_REQUEST = 19; | 
| 199 const int _DELETE_LINK_REQUEST = 20; | 199 const int _DELETE_LINK_REQUEST = 20; | 
| 200 const int _LINK_TARGET_REQUEST = 21; | 200 const int _LINK_TARGET_REQUEST = 21; | 
| 201 const int _TYPE_REQUEST = 22; | 201 const int _TYPE_REQUEST = 22; | 
| 202 const int _IDENTICAL_REQUEST = 23; | 202 const int _IDENTICAL_REQUEST = 23; | 
|  | 203 const int _STAT_REQUEST = 24; | 
| 203 | 204 | 
| 204 // TODO(ager): The only reason for this class is that the patching | 205 // TODO(ager): The only reason for this class is that the patching | 
| 205 // mechanism doesn't seem to like patching a private top level | 206 // mechanism doesn't seem to like patching a private top level | 
| 206 // function. | 207 // function. | 
| 207 class _FileUtils { | 208 class _FileUtils { | 
| 208   external static SendPort _newServicePort(); | 209   external static SendPort _newServicePort(); | 
| 209 } | 210 } | 
| 210 | 211 | 
| 211 // Class for encapsulating the native implementation of files. | 212 // Class for encapsulating the native implementation of files. | 
| 212 class _File implements File { | 213 class _File implements File { | 
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1010           new FileIOException("File closed '$_path'")); | 1011           new FileIOException("File closed '$_path'")); | 
| 1011     }); | 1012     }); | 
| 1012     return completer.future; | 1013     return completer.future; | 
| 1013   } | 1014   } | 
| 1014 | 1015 | 
| 1015   final String _path; | 1016   final String _path; | 
| 1016   int _id; | 1017   int _id; | 
| 1017 | 1018 | 
| 1018   SendPort _fileService; | 1019   SendPort _fileService; | 
| 1019 } | 1020 } | 
| OLD | NEW | 
|---|