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

Unified Diff: components/arc/common/file_system.mojom

Issue 2559643002: ARC Media View: Mojo definitions. (Closed)
Patch Set: . Created 4 years 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 | « no previous file | components/arc/test/fake_file_system_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/file_system.mojom
diff --git a/components/arc/common/file_system.mojom b/components/arc/common/file_system.mojom
index 403e0c76ca043332fa0a6e77fd6d85fefd03f662..b8e3e3c355803acea9030791f1ce15c064a15924 100644
--- a/components/arc/common/file_system.mojom
+++ b/components/arc/common/file_system.mojom
@@ -2,12 +2,46 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Next MinVersion: 2
+// Next MinVersion: 3
module arc.mojom;
+// Represents a document in Android DocumentsProvider.
+// See Android docs of DocumentsContract.Document for details.
+[Extensible]
+struct Document {
+ // ID of the document.
+ string document_id;
+
+ // Display name of the document.
+ string display_name;
+
+ // MIME type of the document.
+ // A directory is represented by a document having MIME_TYPE_DIR MIME type.
+ string mime_type;
+
+ // Size of the document in bytes. If the size is unknown, -1 is set.
+ int64 size;
+
+ // Timestamp when the document was modified last time, in milliseconds
+ // since UNIX epoch.
+ uint64 last_modified;
+};
+
// Next method ID: 3
interface FileSystemInstance {
+ // Queries the child documents of the directory specified by |authority| and
+ // |parent_document_id|.
+ // If such a directory does not exist, null is returned.
+ [MinVersion=2] GetChildDocuments@4(string authority,
+ string parent_document_id) =>
hashimoto 2016/12/07 10:02:22 qq #1: Existing methods like GetFileSize() and Ope
Shuhei Takahashi 2016/12/07 10:35:32 We can make IPC interface to solely use content UR
hashimoto 2016/12/07 10:51:00 How about putting an Android doc URL? https://deve
Shuhei Takahashi 2016/12/08 05:38:03 Thanks, added a link.
+ (array<Document>? documents);
+
+ // Queries the document specified by |authority| and |document_id|.
+ // If such a document does not exist, null is returned.
+ [MinVersion=2] GetDocument@3(string authority, string document_id) =>
+ (Document? document);
+
// Asks the ContentResolver for the size of the file specified by the URL.
// If the file does not exist or the size is unknown, -1 is returned.
[MinVersion=1] GetFileSize@1(string url) => (int64 size);
« no previous file with comments | « no previous file | components/arc/test/fake_file_system_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698