OLD | NEW |
(Empty) | |
| 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 |
| 5 #ifndef MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_INTERNAL_H_ |
| 6 #define MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_INTERNAL_H_ |
| 7 |
| 8 #include "base/callback_forward.h" |
| 9 #include "mojo/public/cpp/system/data_pipe.h" |
| 10 |
| 11 namespace mojo { |
| 12 namespace common { |
| 13 |
| 14 // Read data from the source pipe and invoke the callback for each chunk. |
| 15 bool BlockingCopyHelper( |
| 16 ScopedDataPipeConsumerHandle source, |
| 17 const base::Callback<size_t(const void*, uint32_t)>& write_bytes); |
| 18 |
| 19 } // namespace common |
| 20 } // namespace mojo |
| 21 |
| 22 #endif // MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_INTERNAL_H_ |
OLD | NEW |