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

Unified Diff: sdk/lib/io/namespace_impl.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 | « 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..cefd0ba1eb57ce15583d7e2a7bfcd27c7c08b3da
--- /dev/null
+++ b/sdk/lib/io/namespace_impl.dart
@@ -0,0 +1,22 @@
+// 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".
+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