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

Unified Diff: components/filesystem/public/interfaces/directory.mojom

Issue 1942473002: Eliminate mojo:resource_provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: components/filesystem/public/interfaces/directory.mojom
diff --git a/components/filesystem/public/interfaces/directory.mojom b/components/filesystem/public/interfaces/directory.mojom
index 063fb0ad37da8dfb790637c2b9a8b738cce483cb..a46998098761859b23dc92bcb1eba3477fcad143 100644
--- a/components/filesystem/public/interfaces/directory.mojom
+++ b/components/filesystem/public/interfaces/directory.mojom
@@ -7,6 +7,17 @@ module filesystem;
import "components/filesystem/public/interfaces/file.mojom";
import "components/filesystem/public/interfaces/types.mojom";
+struct FileOpenDetails {
+ string path;
+ uint32 open_flags;
+};
+
+struct FileOpenResult {
+ string path;
+ FileError error;
+ handle file_handle;
+};
+
// This interface provides access to a directory in a "file system", providing
// operations such as creating/opening/removing/renaming files/directories
// within it. Note that all relative |path| arguments are relative to "this"
@@ -37,6 +48,11 @@ interface Directory {
OpenFileHandle(string path, uint32 open_flags)
=> (FileError error, handle file_handle);
+ // Like OpenFileHandle, but opens multiple files.
+ [Sync]
+ OpenFileHandles(array<FileOpenDetails> files)
+ => (/*array<FileOpenResult> results*/);
+
// Opens the directory specified by |path|. |directory| is optional, so that
// this may be used as a simple "mkdir()" with |kOpenFlagCreate|.
[Sync]

Powered by Google App Engine
This is Rietveld 408576698