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

Unified Diff: mojo/common/data_pipe_utils.h

Issue 952413002: The tracing service sometimes creates corrupt data (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/common/data_pipe_utils.cc » ('j') | services/tracing/trace_data_sink.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/data_pipe_utils.h
diff --git a/mojo/common/data_pipe_utils.h b/mojo/common/data_pipe_utils.h
index c1fbc0e48ca1345bdf0750ff2f0b9fc888d20647..83355aab00b80759869e02b4ce7410b709aafdca 100644
--- a/mojo/common/data_pipe_utils.h
+++ b/mojo/common/data_pipe_utils.h
@@ -43,6 +43,10 @@ bool MOJO_COMMON_EXPORT BlockingCopyToString(
ScopedDataPipeConsumerHandle source,
std::string* contents);
+bool MOJO_COMMON_EXPORT BlockingCopyFromString(
+ const std::string& source,
+ const ScopedDataPipeProducerHandle& destination);
+
// Synchronously copies data from source to the destination file returning true
// on success and false on error. In case of an error, |destination| holds the
// data that could be read from the source before the error occured.
« no previous file with comments | « no previous file | mojo/common/data_pipe_utils.cc » ('j') | services/tracing/trace_data_sink.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698