| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_CHROMEOS_AUTHPOLICY_DATA_PIPE_UTILS_H_ |
| #define CHROME_BROWSER_CHROMEOS_AUTHPOLICY_DATA_PIPE_UTILS_H_ |
| |
| #include <string> |
| |
| #include "base/files/scoped_file.h" |
| |
| namespace chromeos { |
| namespace data_pipe_utils { |
| |
| // Writes |data| to the writing end of a pipe and returns the reading end. |
| base::ScopedFD GetDataReadPipe(const std::string& data); |
| |
| } // namespace data_pipe_utils |
| } // namespace chromeos |
| |
| #endif // CHROME_BROWSER_CHROMEOS_AUTHPOLICY_DATA_PIPE_UTILS_H_ |