Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: sdk/lib/io/file_system_entity.dart

Issue 24596003: Clean up IOService implementation to be shared between patched and non-patched code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_system_entity.dart
diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart
index 520046012ed36f16dce87975d988f71cf1f9adc1..b492171c66e068db832163e5b051ceb07bef25d6 100644
--- a/sdk/lib/io/file_system_entity.dart
+++ b/sdk/lib/io/file_system_entity.dart
@@ -71,7 +71,7 @@ class FileStat {
* .type set to FileSystemEntityType.NOT_FOUND and the other fields invalid.
*/
static Future<FileStat> stat(String path) {
- return IOService.dispatch(FILE_STAT, [path]).then((response) {
+ return _IOService.dispatch(_FILE_STAT, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
"Error getting stat",
@@ -236,7 +236,7 @@ abstract class FileSystemEntity {
* since [resolve] removes '..' segments.
*/
Future<String> resolveSymbolicLinks() {
- return IOService.dispatch(FILE_RESOLVE_SYMBOLIC_LINKS, [path])
+ return _IOService.dispatch(_FILE_RESOLVE_SYMBOLIC_LINKS, [path])
.then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
@@ -381,7 +381,7 @@ abstract class FileSystemEntity {
* to an object that does not exist.
*/
static Future<bool> identical(String path1, String path2) {
- return IOService.dispatch(FILE_IDENTICAL, [path1, path2]).then((response) {
+ return _IOService.dispatch(_FILE_IDENTICAL, [path1, path2]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
"Error in FileSystemEntity.identical($path1, $path2)", "");
@@ -537,7 +537,7 @@ abstract class FileSystemEntity {
}
static Future<int> _getTypeAsync(String path, bool followLinks) {
- return IOService.dispatch(FILE_TYPE, [path, followLinks]).then((response) {
+ return _IOService.dispatch(_FILE_TYPE, [path, followLinks]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Error getting type", path);
}
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698