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

Unified Diff: mojo/file_utils/file_util.h

Issue 1923573002: Convert //mojo/file_utils to use SynchronousInterfacePtr. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « mojo/file_utils/BUILD.gn ('k') | mojo/file_utils/file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/file_utils/file_util.h
diff --git a/mojo/file_utils/file_util.h b/mojo/file_utils/file_util.h
index 579ff0adec505ca4873f4cb18a9955eaa60fd6e8..122148a65dae6e319fe77c91d8732b0704a145b4 100644
--- a/mojo/file_utils/file_util.h
+++ b/mojo/file_utils/file_util.h
@@ -9,7 +9,9 @@
#include <string>
-#include "mojo/services/files/interfaces/directory.mojom.h"
+#include "mojo/public/cpp/bindings/interface_handle.h"
+#include "mojo/public/cpp/bindings/synchronous_interface_ptr.h"
+#include "mojo/services/files/interfaces/directory.mojom-sync.h"
#include "mojo/services/files/interfaces/file.mojom.h"
namespace file_utils {
@@ -20,8 +22,8 @@ namespace file_utils {
// when this function is called.
// Returns a FilePtr on success, and null on failure.
// On failure, |path_name| is unchanged.
-mojo::files::FilePtr CreateTemporaryFileInDir(
- mojo::files::DirectoryPtr* directory,
+mojo::InterfaceHandle<mojo::files::File> CreateTemporaryFileInDir(
+ mojo::SynchronousInterfacePtr<mojo::files::Directory>* directory,
std::string* path_name);
} // namespace file_utils
« no previous file with comments | « mojo/file_utils/BUILD.gn ('k') | mojo/file_utils/file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698