| 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 [DartUriBase="mojo/services/files/public/interfaces"] |
| 5 module mojo.files; | 6 module mojo.files; |
| 6 | 7 |
| 7 import "files/public/interfaces/directory.mojom"; | 8 import "files/public/interfaces/directory.mojom"; |
| 8 import "files/public/interfaces/types.mojom"; | 9 import "files/public/interfaces/types.mojom"; |
| 9 | 10 |
| 10 enum FileSystem { | 11 enum FileSystem { |
| 11 // A per-instance (i.e., one for each call to |OpenFileSystem()|) temporary | 12 // A per-instance (i.e., one for each call to |OpenFileSystem()|) temporary |
| 12 // file system. | 13 // file system. |
| 13 TEMPORARY, | 14 TEMPORARY, |
| 14 | 15 |
| 15 // A persistent, shared file system (rooted at ~/MojoDebug, which must already | 16 // A persistent, shared file system (rooted at ~/MojoDebug, which must already |
| 16 // exist) only available in Debug builds. | 17 // exist) only available in Debug builds. |
| 17 DEBUG, | 18 DEBUG, |
| 18 }; | 19 }; |
| 19 | 20 |
| 20 interface Files { | 21 interface Files { |
| 21 OpenFileSystem(FileSystem file_system, Directory& directory) => (Error error); | 22 OpenFileSystem(FileSystem file_system, Directory& directory) => (Error error); |
| 22 }; | 23 }; |
| OLD | NEW |