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

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

Issue 696543003: Mojo content handler shebang support (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: For now, we'll block waiting for 7 characters (#!mojo: or not) Created 6 years, 1 month 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
« no previous file with comments | « no previous file | mojo/common/data_pipe_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | mojo/common/data_pipe_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698