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

Unified Diff: runtime/bin/directory_patch.dart

Issue 3001963002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Fuchsia fix Created 3 years, 4 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 | « runtime/bin/directory_macos.cc ('k') | runtime/bin/directory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_patch.dart
diff --git a/runtime/bin/directory_patch.dart b/runtime/bin/directory_patch.dart
index 5e4d24c57a85f927b621de1876d7ca8977d24052..dbb6bd924d36d9acab33173f2c82a1cc20f72fdf 100644
--- a/runtime/bin/directory_patch.dart
+++ b/runtime/bin/directory_patch.dart
@@ -5,23 +5,27 @@
@patch
class _Directory {
@patch
- static _current() native "Directory_Current";
+ static _current(_Namespace namespace) native "Directory_Current";
@patch
- static _setCurrent(path) native "Directory_SetCurrent";
+ static _setCurrent(_Namespace namespace, path) native "Directory_SetCurrent";
@patch
- static _createTemp(String path) native "Directory_CreateTemp";
+ static _createTemp(_Namespace namespace, String path)
+ native "Directory_CreateTemp";
@patch
- static String _systemTemp() native "Directory_SystemTemp";
+ static String _systemTemp(_Namespace namespace) native "Directory_SystemTemp";
@patch
- static _exists(String path) native "Directory_Exists";
+ static _exists(_Namespace namespace, String path) native "Directory_Exists";
@patch
- static _create(String path) native "Directory_Create";
+ static _create(_Namespace namespace, String path) native "Directory_Create";
@patch
- static _deleteNative(String path, bool recursive) native "Directory_Delete";
+ static _deleteNative(_Namespace namespace, String path, bool recursive)
+ native "Directory_Delete";
@patch
- static _rename(String path, String newPath) native "Directory_Rename";
+ static _rename(_Namespace namespace, String path, String newPath)
+ native "Directory_Rename";
@patch
static void _fillWithDirectoryListing(
+ _Namespace namespace,
List<FileSystemEntity> list,
String path,
bool recursive,
@@ -50,7 +54,7 @@ class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
// Corelib 'Uri.base' implementation.
// Uri.base is susceptible to changes in the current working directory.
Uri _uriBaseClosure() {
- var result = _Directory._current();
+ var result = _Directory._current(_Namespace._namespace);
if (result is OSError) {
throw new FileSystemException(
"Getting current working directory failed", "", result);
« no previous file with comments | « runtime/bin/directory_macos.cc ('k') | runtime/bin/directory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698