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

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

Issue 1382713002: Creating a pexe content handler to translate and run pexes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Tests Added Created 5 years, 2 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
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_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_ 5 #ifndef MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_
6 #define MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_ 6 #define MOJO_DATA_PIPE_UTILS_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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 bool BlockingCopyFromString(const std::string& source, 43 bool BlockingCopyFromString(const std::string& source,
44 const ScopedDataPipeProducerHandle& destination); 44 const ScopedDataPipeProducerHandle& destination);
45 45
46 // Synchronously copies source data to a temporary file, returning a file 46 // Synchronously copies source data to a temporary file, returning a file
47 // pointer on success and NULL on error. The temporary file is unlinked 47 // pointer on success and NULL on error. The temporary file is unlinked
48 // immediately so that it is only accessible by file pointer (and removed once 48 // immediately so that it is only accessible by file pointer (and removed once
49 // closed or the creating process dies). 49 // closed or the creating process dies).
50 base::ScopedFILE BlockingCopyToTempFile(ScopedDataPipeConsumerHandle source); 50 base::ScopedFILE BlockingCopyToTempFile(ScopedDataPipeConsumerHandle source);
51 51
52 // Same as BlockingCopyToTempFile, but do not unlink the file.
53 base::FilePath BlockingCopyToNewTempFile(ScopedDataPipeConsumerHandle source);
54
52 } // namespace common 55 } // namespace common
53 } // namespace mojo 56 } // namespace mojo
54 57
55 #endif // MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_ 58 #endif // MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698