OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_SHELL_DATA_PIPE_UTILS_H_ | 5 #ifndef MOJO_SHELL_DATA_PIPE_UTILS_H_ |
6 #define MOJO_SHELL_DATA_PIPE_UTILS_H_ | 6 #define MOJO_SHELL_DATA_PIPE_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/threading/platform_thread.h" |
11 #include "mojo/common/mojo_common_export.h" | 12 #include "mojo/common/mojo_common_export.h" |
12 #include "mojo/public/cpp/system/core.h" | 13 #include "mojo/public/cpp/system/core.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class FilePath; | 16 class FilePath; |
16 class TaskRunner; | 17 class TaskRunner; |
17 } | 18 } |
18 | 19 |
19 namespace mojo { | 20 namespace mojo { |
20 namespace common { | 21 namespace common { |
(...skipping 11 matching lines...) Expand all Loading... |
32 // false on error. In case of I/O error, |contents| holds the data that could | 33 // false on error. In case of I/O error, |contents| holds the data that could |
33 // be read from source before the error occurred. | 34 // be read from source before the error occurred. |
34 bool MOJO_COMMON_EXPORT BlockingCopyToString( | 35 bool MOJO_COMMON_EXPORT BlockingCopyToString( |
35 ScopedDataPipeConsumerHandle source, | 36 ScopedDataPipeConsumerHandle source, |
36 std::string* contents); | 37 std::string* contents); |
37 | 38 |
38 } // namespace common | 39 } // namespace common |
39 } // namespace mojo | 40 } // namespace mojo |
40 | 41 |
41 #endif // MOJO_SHELL_DATA_PIPE_UTILS_H_ | 42 #endif // MOJO_SHELL_DATA_PIPE_UTILS_H_ |
OLD | NEW |