Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromecast / base / process_utils.h
blobc79da17c037bef785be0339df00e654aef146ffa
1 // Copyright 2015 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.
5 #ifndef CHROMECAST_BASE_PROCESS_UTILS_H_
6 #define CHROMECAST_BASE_PROCESS_UTILS_H_
8 #include <string>
9 #include <vector>
11 namespace chromecast {
13 // Executes application, for which arguments are specified by |argv| and wait
14 // for it to exit. Stores the output (stdout) in |output|. Returns true on
15 // success.
16 // TODO(slan): Replace uses of this with base::GetAppOutput when crbug/493711 is
17 // resolved.
18 bool GetAppOutput(const std::vector<std::string>& argv, std::string* output);
20 } // namespace chromecast
22 #endif // CHROMECAST_BASE_PROCESS_UTILS_H_