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

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

Issue 2505993005: Move FS related mojo methods to ArcFileSystemInstance. (Closed)
Patch Set: Created 4 years, 1 month 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/common/intent_helper.mojom » ('j') | components/arc/common/intent_helper.mojom » ('J')
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 7cda8973b9874be023d6fa2fb26107767d83629b..f2fd72d62e0062b514dd6414709cfefda59fb788 100644
--- a/components/arc/common/file_system.mojom
+++ b/components/arc/common/file_system.mojom
@@ -1,12 +1,23 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Next MinVersion: 2
module arc.mojom;
+// Next method ID: 3
interface FileSystemInstance {
// Requests MediaProvider to scan specified files.
// When the specified file does not exist, the corresponding entry in
// MediaProvider is removed.
RequestMediaScan@0(array<string> paths);
Yusuke Sato 2016/11/18 19:09:38 move to L23 to sort methods by name?
Shuhei Takahashi 2016/11/21 11:06:29 Done.
+
+ // 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);
+
+ // Asks the ContentResolver to get a FD to read the file specified by the
+ // URL.
+ [MinVersion=1] OpenFileToRead@2(string url) => (handle? fd);
};
« no previous file with comments | « no previous file | components/arc/common/intent_helper.mojom » ('j') | components/arc/common/intent_helper.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698