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

Side by Side Diff: runtime/bin/directory_patch.dart

Issue 1893033002: Fixes memory leak of async directory lister (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add unsupported calls Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/directory.cc ('k') | runtime/bin/directory_unsupported.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 patch class _Directory { 5 patch class _Directory {
6 /* patch */ static _current() native "Directory_Current"; 6 /* patch */ static _current() native "Directory_Current";
7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent"; 7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent";
8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp"; 8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp";
9 /* patch */ static String _systemTemp() native "Directory_SystemTemp"; 9 /* patch */ static String _systemTemp() native "Directory_SystemTemp";
10 /* patch */ static _exists(String path) native "Directory_Exists"; 10 /* patch */ static _exists(String path) native "Directory_Exists";
11 /* patch */ static _create(String path) native "Directory_Create"; 11 /* patch */ static _create(String path) native "Directory_Create";
12 /* patch */ static _deleteNative(String path, bool recursive) 12 /* patch */ static _deleteNative(String path, bool recursive)
13 native "Directory_Delete"; 13 native "Directory_Delete";
14 /* patch */ static _rename(String path, String newPath) 14 /* patch */ static _rename(String path, String newPath)
15 native "Directory_Rename"; 15 native "Directory_Rename";
16 /* patch */ static List _list(String path, bool recursive, bool followLinks) 16 /* patch */ static List _list(String path, bool recursive, bool followLinks)
17 native "Directory_List"; 17 native "Directory_List";
18 } 18 }
19
20 patch class _AsyncDirectoryListerOps {
21 /* patch */ factory _AsyncDirectoryListerOps(int pointer) =>
22 new _AsyncDirectoryListerOpsImpl(pointer);
23 }
24
25 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
26 implements _AsyncDirectoryListerOps {
27 _AsyncDirectoryListerOpsImpl._();
28
29 factory _AsyncDirectoryListerOpsImpl(int pointer)
30 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer);
31
32 void _setPointer(int pointer)
33 native "Directory_SetAsyncDirectoryListerPointer";
34 int getPointer()
35 native "Directory_GetAsyncDirectoryListerPointer";
36 }
OLDNEW
« no previous file with comments | « runtime/bin/directory.cc ('k') | runtime/bin/directory_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698