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

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, 7 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 | « components/filesystem/filesystem.gyp ('k') | components/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..973daa12934eea14d1c0c9e7a9de8416ccbb49f4 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]
« no previous file with comments | « components/filesystem/filesystem.gyp ('k') | components/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698