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

Unified Diff: mojo/common/data_pipe_utils.h

Issue 694303002: Allow local file to run though content handler. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove mime mapping 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 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') | mojo/common/data_pipe_utils.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 dc2197b6e07fd14a7d1f08ec4da610e852367a5c..106537f8e2550bbbc197c7c6df2ed4f8f409c56a 100644
--- a/mojo/common/data_pipe_utils.h
+++ b/mojo/common/data_pipe_utils.h
@@ -28,6 +28,12 @@ void MOJO_COMMON_EXPORT CopyToFile(
base::TaskRunner* task_runner,
const base::Callback<void(bool /*success*/)>& callback);
+void MOJO_COMMON_EXPORT
+ CopyFromFile(const base::FilePath& source,
+ ScopedDataPipeProducerHandle destination,
+ base::TaskRunner* task_runner,
+ const base::Callback<void(bool /*success*/)>& callback);
Aaron Boodman 2014/11/03 19:20:15 This /* syntax */ is something I don't feel that I
qsr 2014/11/04 11:58:34 Acknowledged.
+
// Copies the data from |source| into |contents| and returns true on success and
// false on error. In case of I/O error, |contents| holds the data that could
// be read from source before the error occurred.
« no previous file with comments | « no previous file | mojo/common/data_pipe_utils.cc » ('j') | mojo/common/data_pipe_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698