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

Side by Side Diff: runtime/bin/embedded_dart_io.cc

Issue 2662393002: Export SetExecutableName/Arguments for use by embedders
Patch Set: Created 3 years, 10 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/embedded_dart_io.h ('k') | no next file » | 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) 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 #include "bin/embedded_dart_io.h" 5 #include "bin/embedded_dart_io.h"
6 6
7 #include "bin/directory.h" 7 #include "bin/directory.h"
8 #include "bin/eventhandler.h" 8 #include "bin/eventhandler.h"
9 #include "bin/platform.h"
9 #include "bin/utils.h" 10 #include "bin/utils.h"
10 #include "bin/thread.h" 11 #include "bin/thread.h"
11 12
12 namespace dart { 13 namespace dart {
13 namespace bin { 14 namespace bin {
14 15
15 void BootstrapDartIo() { 16 void BootstrapDartIo() {
16 // Bootstrap 'dart:io' event handler. 17 // Bootstrap 'dart:io' event handler.
17 Thread::InitOnce(); 18 Thread::InitOnce();
18 TimerUtils::InitOnce(); 19 TimerUtils::InitOnce();
19 EventHandler::Start(); 20 EventHandler::Start();
20 } 21 }
21 22
22 23
23 void SetSystemTempDirectory(const char* system_temp) { 24 void SetSystemTempDirectory(const char* system_temp) {
24 Directory::SetSystemTemp(system_temp); 25 Directory::SetSystemTemp(system_temp);
25 } 26 }
26 27
28 void SetExecutableName(const char* executable_name) {
29 Platform::SetExecutableName(executable_name);
30 }
31
32 void SetExecutableArguments(int script_index, char** argv) {
33 Platform::SetExecutableArguments(script_index, argv);
34 }
35
27 } // namespace bin 36 } // namespace bin
28 } // namespace dart 37 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/embedded_dart_io.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698