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

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

Issue 3007703002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Remove namespace_unsupported.cc 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 | « sdk/lib/io/link.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/namespace_impl.dart
diff --git a/sdk/lib/io/namespace_impl.dart b/sdk/lib/io/namespace_impl.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2ba67482f689533b328ebfb37b2757b326c581ce
--- /dev/null
+++ b/sdk/lib/io/namespace_impl.dart
@@ -0,0 +1,23 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+part of dart.io;
+
+// Each Isolate may run in a different "namespace", which provides the scope in
+// which file paths are resolved.
+abstract class _Namespace {
+ // This getter does not increase the reference count on the underlying native
+ // object. It cannot be passed in a dispatch message to the IOService thread.
+ external static _Namespace get _namespace;
+
+ // This getter does increase the reference count on the underlying native
+ // object. It must be passed in a dispatch message to the IOService thread.
+ external static int get _namespacePointer;
+
+ // This sets up the Isolate's namespace. It should be set up by the embedder.
+ // If it is not set up by the embedder, relative paths will be resolved
+ // relative to the process's current working directory and absolute paths will
+ // be left relative to the file system root.
+ external static void _setupNamespace(var namespace);
+}
« no previous file with comments | « sdk/lib/io/link.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698