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

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

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT and fix the test import. Created 5 years, 6 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 5d3a1db4a1c89d311808621b45fb8678f75eec1d..bd5aba4dceebf1c57dc3442452b8499d82d7c69e 100644
--- a/components/filesystem/public/interfaces/directory.mojom
+++ b/components/filesystem/public/interfaces/directory.mojom
@@ -42,6 +42,16 @@ interface Directory {
// |kDeleteFlag...| for details).
Delete(string path, uint32 delete_flags) => (FileError error);
+ // Returns true if |path| exists.
+ Exists(string path) => (FileError error, bool exists);
+
+ // Returns true if |path| is writable.
+ IsWritable(string path) => (FileError error, bool is_writable);
+
+ // Opens a file descriptor on this directory and calls
+ // fsync()/FlushFileBuffers().
+ Flush() => (FileError error);
+
// TODO(vtl): directory "streaming"?
// TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that
// this would require a much more complicated implementation (e.g., it needs

Powered by Google App Engine
This is Rietveld 408576698