| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 5 |
| 6 // Used for holding error code and error message for failed OS system calls. | 6 // Used for holding error code and error message for failed OS system calls. |
| 7 class _OSStatus { | 7 class _OSStatus { |
| 8 int _errorCode; | 8 int _errorCode; |
| 9 String _errorMessage; | 9 String _errorMessage; |
| 10 } | 10 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 SendPort dirPort, | 32 SendPort dirPort, |
| 33 SendPort filePort, | 33 SendPort filePort, |
| 34 SendPort donePort, | 34 SendPort donePort, |
| 35 SendPort errorPort) native "Directory_List"; | 35 SendPort errorPort) native "Directory_List"; |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 class _DirectoryOperation { | 39 class _DirectoryOperation { |
| 40 abstract void execute(ReceivePort port); | 40 abstract void execute(ReceivePort port); |
| 41 | 41 |
| 42 SendPort set replyPort(SendPort port) { | 42 void set replyPort(SendPort port) { |
| 43 _replyPort = port; | 43 _replyPort = port; |
| 44 } | 44 } |
| 45 | 45 |
| 46 SendPort _replyPort; | 46 SendPort _replyPort; |
| 47 } | 47 } |
| 48 | 48 |
| 49 | 49 |
| 50 class _DirExitOperation extends _DirectoryOperation { | 50 class _DirExitOperation extends _DirectoryOperation { |
| 51 void execute(ReceivePort port) { | 51 void execute(ReceivePort port) { |
| 52 port.close(); | 52 port.close(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 var _doneHandler; | 362 var _doneHandler; |
| 363 var _existsHandler; | 363 var _existsHandler; |
| 364 var _createHandler; | 364 var _createHandler; |
| 365 var _createTempHandler; | 365 var _createTempHandler; |
| 366 var _deleteHandler; | 366 var _deleteHandler; |
| 367 var _errorHandler; | 367 var _errorHandler; |
| 368 | 368 |
| 369 String _path; | 369 String _path; |
| 370 _DirectoryOperationScheduler _scheduler; | 370 _DirectoryOperationScheduler _scheduler; |
| 371 } | 371 } |
| OLD | NEW |