Chromium Code Reviews| Index: mojo/common/data_pipe_utils.h |
| diff --git a/mojo/common/data_pipe_utils.h b/mojo/common/data_pipe_utils.h |
| index dc2197b6e07fd14a7d1f08ec4da610e852367a5c..106537f8e2550bbbc197c7c6df2ed4f8f409c56a 100644 |
| --- a/mojo/common/data_pipe_utils.h |
| +++ b/mojo/common/data_pipe_utils.h |
| @@ -28,6 +28,12 @@ void MOJO_COMMON_EXPORT CopyToFile( |
| base::TaskRunner* task_runner, |
| const base::Callback<void(bool /*success*/)>& callback); |
| +void MOJO_COMMON_EXPORT |
| + CopyFromFile(const base::FilePath& source, |
| + ScopedDataPipeProducerHandle destination, |
| + base::TaskRunner* task_runner, |
| + const base::Callback<void(bool /*success*/)>& callback); |
|
Aaron Boodman
2014/11/03 19:20:15
This /* syntax */ is something I don't feel that I
qsr
2014/11/04 11:58:34
Acknowledged.
|
| + |
| // Copies the data from |source| into |contents| and returns true on success and |
| // false on error. In case of I/O error, |contents| holds the data that could |
| // be read from source before the error occurred. |