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 2505993005: Move FS related mojo methods to ArcFileSystemInstance. (Closed)
Patch Set: Define version constants. 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
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..403e0c76ca043332fa0a6e77fd6d85fefd03f662 100644
--- a/components/arc/common/file_system.mojom
+++ b/components/arc/common/file_system.mojom
@@ -1,10 +1,21 @@
// 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 {
+ // 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);
+
// Requests MediaProvider to scan specified files.
// When the specified file does not exist, the corresponding entry in
// MediaProvider is removed.
« no previous file with comments | « chrome/browser/chromeos/arc/fileapi/intent_helper_util.cc ('k') | components/arc/common/intent_helper.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698