Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #ifndef RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 5 #ifndef RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
| 6 #define RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 6 #define RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
| 7 | 7 |
| 8 #include "include/dart_tools_api.h" | |
| 9 | |
| 8 namespace dart { | 10 namespace dart { |
| 9 namespace bin { | 11 namespace bin { |
| 10 | 12 |
| 11 // Bootstraps 'dart:io'. | 13 // Bootstraps 'dart:io'. |
| 12 void BootstrapDartIo(); | 14 void BootstrapDartIo(); |
| 13 | 15 |
| 14 // Lets dart:io know where the system temporary directory is located. | 16 // Lets dart:io know where the system temporary directory is located. |
| 15 // Currently only wired up on Android. | 17 // Currently only wired up on Android. |
| 16 void SetSystemTempDirectory(const char* system_temp); | 18 void SetSystemTempDirectory(const char* system_temp); |
| 17 | 19 |
| 18 // Tells the system whether to capture Stdout events. | 20 // Tells the system whether to capture Stdout events. |
| 19 void SetCaptureStdout(bool value); | 21 void SetCaptureStdout(bool value); |
| 20 | 22 |
| 21 // Tells the system whether to capture Stderr events. | 23 // Tells the system whether to capture Stderr events. |
| 22 void SetCaptureStderr(bool value); | 24 void SetCaptureStderr(bool value); |
| 23 | 25 |
| 24 // Should Stdout events be captured? | 26 // Should Stdout events be captured? |
| 25 bool ShouldCaptureStdout(); | 27 bool ShouldCaptureStdout(); |
| 26 | 28 |
| 27 // Should Stderr events be captured? | 29 // Should Stderr events be captured? |
| 28 bool ShouldCaptureStderr(); | 30 bool ShouldCaptureStderr(); |
| 29 | 31 |
| 30 // Set the executable name used by Platform.executable. | 32 // Set the executable name used by Platform.executable. |
| 31 void SetExecutableName(const char* executable_name); | 33 void SetExecutableName(const char* executable_name); |
| 32 | 34 |
| 33 // Set the arguments used by Platform.executableArguments. | 35 // Set the arguments used by Platform.executableArguments. |
| 34 void SetExecutableArguments(int script_index, char** argv); | 36 void SetExecutableArguments(int script_index, char** argv); |
| 35 | 37 |
| 38 // Partial implementation of a Dart_EmbedderInformationCallback that fills the | |
|
zra
2017/08/16 16:13:52
This might be extended in the future, so maybe:
"
cbernaschina
2017/08/16 17:54:54
Done.
| |
| 39 // max_rss and current_rss fields. | |
| 40 void GetIOEmbedderInformation(Dart_EmbedderInformation* info); | |
| 41 | |
| 36 } // namespace bin | 42 } // namespace bin |
| 37 } // namespace dart | 43 } // namespace dart |
| 38 | 44 |
| 39 #endif // RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 45 #endif // RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
| OLD | NEW |