process_utils.h 720 B

12345678910111213141516171819202122
  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.
  4. #ifndef CHROMECAST_BASE_PROCESS_UTILS_H_
  5. #define CHROMECAST_BASE_PROCESS_UTILS_H_
  6. #include <string>
  7. #include <vector>
  8. namespace chromecast {
  9. // Executes application, for which arguments are specified by |argv| and wait
  10. // for it to exit. Stores the output (stdout) in |output|. Returns true on
  11. // success.
  12. // TODO(slan): Replace uses of this with base::GetAppOutput when crbug/493711 is
  13. // resolved.
  14. bool GetAppOutput(const std::vector<std::string>& argv, std::string* output);
  15. } // namespace chromecast
  16. #endif // CHROMECAST_BASE_PROCESS_UTILS_H_