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

Unified Diff: mojo/common/data_pipe_utils.h

Issue 467263006: JavaScript Content Handler Version 0.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use chromium application runner Created 6 years, 4 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
Index: mojo/common/data_pipe_utils.h
diff --git a/mojo/common/data_pipe_utils.h b/mojo/common/data_pipe_utils.h
index dc2f66a005955cf8f1a0c58d6b4352004dc93193..04c2e48090a56b0316f689c7bfdae400f7eaf1e7 100644
--- a/mojo/common/data_pipe_utils.h
+++ b/mojo/common/data_pipe_utils.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SHELL_DATA_PIPE_UTILS_H_
#define MOJO_SHELL_DATA_PIPE_UTILS_H_
+#include <string>
+
#include "base/callback_forward.h"
#include "mojo/common/mojo_common_export.h"
#include "mojo/public/cpp/system/core.h"
@@ -26,6 +28,10 @@ void MOJO_COMMON_EXPORT CopyToFile(
base::TaskRunner* task_runner,
const base::Callback<void(bool /*success*/)>& callback);
+bool MOJO_COMMON_EXPORT BlockingCopyToString(
darin (slow to review) 2014/08/26 05:23:23 nit: provide a comment block here, explaining retu
hansmuller 2014/08/26 23:39:12 Done.
+ ScopedDataPipeConsumerHandle source,
+ std::string* contents);
+
} // namespace common
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698