Index: components/arc/common/file_system.mojom |
diff --git a/components/arc/common/file_system.mojom b/components/arc/common/file_system.mojom |
index 24e4041ff8d137bc018b0cd52572b8b03c543433..6f0005fcc94afc5aa96a0b2af275c7d5269b27ac 100644 |
--- a/components/arc/common/file_system.mojom |
+++ b/components/arc/common/file_system.mojom |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
// |
-// Next MinVersion: 4 |
+// Next MinVersion: 5 |
module arc.mojom; |
@@ -51,7 +51,7 @@ interface FileSystemHost { |
[MinVersion=3] OnDocumentChanged@0(int64 watcher_id, ChangeType type); |
}; |
-// Next method ID: 8 |
+// Next method ID: 9 |
interface FileSystemInstance { |
// Notes about Android Documents Provider: |
// |
@@ -105,6 +105,11 @@ interface FileSystemInstance { |
// streams), -1 is returned. |
[MinVersion=1] GetFileSize@1(string url) => (int64 size); |
+ // Asks the ContentResolver to get the MIME type of the file specified by the |
+ // URL. When an error occurs, returns null value (not to be confused with the |
+ // empty string). |
hidehiko
2017/06/05 05:18:04
Clarification: Can empty string be a valid returne
hashimoto
2017/06/05 05:40:53
This method returns the empty string when ContentR
hidehiko
2017/06/05 05:52:53
Just IMHO:
Checked a bit more. According to RFC204
hashimoto
2017/06/05 06:03:50
OK, dropped that part.
Either in C++ (base::Option
|
+ [MinVersion=4] GetMimeType@8(string url) => (string? mime_type); |
+ |
// Establishes full-duplex communication with the host. |
[MinVersion=3] Init@5(FileSystemHost host_ptr); |