OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 part of dart.io; |
| 6 |
| 7 // Each Isolate may run in a different "namespace". |
| 8 abstract class _Namespace { |
| 9 // This getter does not increase the reference count on the underlying native |
| 10 // object. It cannot be passed in a dispatch message to the IOService thread. |
| 11 external static _Namespace get _namespace; |
| 12 |
| 13 // This getter does increase the reference count on the underlying native |
| 14 // object. It must be passed in a dispatch message to the IOService thread. |
| 15 external static int get _namespacePointer; |
| 16 |
| 17 // This sets up the Isolate's namespace. It should be set up by the embedder. |
| 18 // If it is not set up by the embedder, relative paths will be resolved |
| 19 // relative to the process's current working directory and absolute paths will |
| 20 // be left relative to the file system root. |
| 21 external static void _setupNamespace(var namespace); |
| 22 } |
OLD | NEW |