OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 4 |
5 module filesystem.mojom; | 5 module filesystem.mojom; |
6 | 6 |
7 import "components/filesystem/public/interfaces/directory.mojom"; | 7 import "components/filesystem/public/interfaces/directory.mojom"; |
8 import "components/filesystem/public/interfaces/types.mojom"; | 8 import "components/filesystem/public/interfaces/types.mojom"; |
9 | 9 |
10 interface FileSystem { | 10 interface FileSystem { |
11 // Opens a temporary filesystem. Will return a different directory each time | 11 // Opens a temporary filesystem. Will return a different directory each time |
12 // it is called. | 12 // it is called. |
| 13 [Sync] |
13 OpenTempDirectory(Directory& directory) => (FileError error); | 14 OpenTempDirectory(Directory& directory) => (FileError error); |
14 | 15 |
15 // Returns a directory which will persist to disk. | 16 // Returns a directory which will persist to disk. |
| 17 [Sync] |
16 OpenPersistentFileSystem(Directory& directory) => (FileError error); | 18 OpenPersistentFileSystem(Directory& directory) => (FileError error); |
17 }; | 19 }; |
OLD | NEW |