| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // |
| 5 // Next MinVersion: 2 |
| 4 | 6 |
| 5 module arc.mojom; | 7 module arc.mojom; |
| 6 | 8 |
| 9 // Next method ID: 3 |
| 7 interface FileSystemInstance { | 10 interface FileSystemInstance { |
| 11 // Asks the ContentResolver for the size of the file specified by the URL. |
| 12 // If the file does not exist or the size is unknown, -1 is returned. |
| 13 [MinVersion=1] GetFileSize@1(string url) => (int64 size); |
| 14 |
| 15 // Asks the ContentResolver to get a FD to read the file specified by the |
| 16 // URL. |
| 17 [MinVersion=1] OpenFileToRead@2(string url) => (handle? fd); |
| 18 |
| 8 // Requests MediaProvider to scan specified files. | 19 // Requests MediaProvider to scan specified files. |
| 9 // When the specified file does not exist, the corresponding entry in | 20 // When the specified file does not exist, the corresponding entry in |
| 10 // MediaProvider is removed. | 21 // MediaProvider is removed. |
| 11 RequestMediaScan@0(array<string> paths); | 22 RequestMediaScan@0(array<string> paths); |
| 12 }; | 23 }; |
| OLD | NEW |