Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: mojo/data_pipe_utils/data_pipe_utils_internal.h

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « mojo/data_pipe_utils/data_pipe_utils.cc ('k') | mojo/data_pipe_utils/data_pipe_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698