1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TOOLS_GN_EXEC_PROCESS_H_ 6 #define TOOLS_GN_EXEC_PROCESS_H_ 7 8 #include <string> 9 10 #include "util/build_config.h" 11 12 namespace base { 13 class CommandLine; 14 class FilePath; 15 } // namespace base 16 17 namespace internal { 18 19 bool ExecProcess(const base::CommandLine& cmdline, 20 const base::FilePath& startup_dir, 21 std::string* std_out, 22 std::string* std_err, 23 int* exit_code); 24 25 #if defined(OS_WIN) 26 bool ExecProcess(const std::u16string& cmdline_str, 27 const base::FilePath& startup_dir, 28 std::string* std_out, 29 std::string* std_err, 30 int* exit_code); 31 #endif // OS_WIN 32 33 } // namespace internal 34 35 #endif // TOOLS_GN_EXEC_PROCESS_H_ 36