| 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; | 5 module filesystem.mojom; |
| 6 | 6 |
| 7 // Error codes used by the file system. These error codes line up exactly with | 7 // Error codes used by the file system. These error codes line up exactly with |
| 8 // those of base::File. | 8 // those of base::File. |
| 9 enum FileError { | 9 enum FileError { |
| 10 OK = 0, | 10 OK = 0, |
| 11 FAILED = -1, | 11 FAILED = -1, |
| 12 IN_USE = -2, | 12 IN_USE = -2, |
| 13 EXISTS = -3, | 13 EXISTS = -3, |
| 14 NOT_FOUND = -4, | 14 NOT_FOUND = -4, |
| 15 ACCESS_DENIED = -5, | 15 ACCESS_DENIED = -5, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Describes a directory entry (i.e., a single member of a directory). | 93 // Describes a directory entry (i.e., a single member of a directory). |
| 94 struct DirectoryEntry { | 94 struct DirectoryEntry { |
| 95 FsFileType type; | 95 FsFileType type; |
| 96 string name; | 96 string name; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 // Deletion flags: | 99 // Deletion flags: |
| 100 // Recursively delete. | 100 // Recursively delete. |
| 101 const uint32 kDeleteFlagRecursive = 0x1; | 101 const uint32 kDeleteFlagRecursive = 0x1; |
| OLD | NEW |