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

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

Issue 1466733002: Google OAuth Device Flow support for FNL (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Removed data_unittest.py Created 4 years, 9 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 <stdio.h> 8 #include <stdio.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // pointer on success and NULL on error. The temporary file is unlinked 48 // pointer on success and NULL on error. The temporary file is unlinked
49 // immediately so that it is only accessible by file pointer (and removed once 49 // immediately so that it is only accessible by file pointer (and removed once
50 // closed or the creating process dies). 50 // closed or the creating process dies).
51 base::ScopedFILE BlockingCopyToTempFile(ScopedDataPipeConsumerHandle source); 51 base::ScopedFILE BlockingCopyToTempFile(ScopedDataPipeConsumerHandle source);
52 52
53 // Similar to BlockingCopyToTempFile, but use a pre-defined file pointer 53 // Similar to BlockingCopyToTempFile, but use a pre-defined file pointer
54 // (rather than a newly created temp file) and do not unlink the file. 54 // (rather than a newly created temp file) and do not unlink the file.
55 // Returns true on success, false on failure. 55 // Returns true on success, false on failure.
56 bool BlockingCopyToFile(ScopedDataPipeConsumerHandle source, FILE* fp); 56 bool BlockingCopyToFile(ScopedDataPipeConsumerHandle source, FILE* fp);
57 57
58 // Copies the string |contents| to a temporary data pipe and returns the
59 // consumer handle.
60 ScopedDataPipeConsumerHandle WriteStringToConsumerHandle(
61 const std::string& source);
62
58 } // namespace common 63 } // namespace common
59 } // namespace mojo 64 } // namespace mojo
60 65
61 #endif // MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_ 66 #endif // MOJO_DATA_PIPE_UTILS_DATA_PIPE_UTILS_H_
OLDNEW
« no previous file with comments | « mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart ('k') | mojo/data_pipe_utils/data_pipe_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698