| 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/file.mojom"; | 7 import "components/filesystem/public/interfaces/file.mojom"; |
| 8 import "components/filesystem/public/interfaces/types.mojom"; | 8 import "components/filesystem/public/interfaces/types.mojom"; |
| 9 import "mojo/common/common_custom_types.mojom"; | 9 import "mojo/common/file.mojom"; |
| 10 | 10 |
| 11 struct FileOpenDetails { | 11 struct FileOpenDetails { |
| 12 string path; | 12 string path; |
| 13 uint32 open_flags; | 13 uint32 open_flags; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 struct FileOpenResult { | 16 struct FileOpenResult { |
| 17 string path; | 17 string path; |
| 18 FileError error; | 18 FileError error; |
| 19 mojo.common.mojom.File? file_handle; | 19 mojo.common.mojom.File? file_handle; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 WriteFile(string path, array<uint8> data) => (FileError error); | 100 WriteFile(string path, array<uint8> data) => (FileError error); |
| 101 | 101 |
| 102 // TODO(vtl): directory "streaming"? | 102 // TODO(vtl): directory "streaming"? |
| 103 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that | 103 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that |
| 104 // this would require a much more complicated implementation (e.g., it needs | 104 // this would require a much more complicated implementation (e.g., it needs |
| 105 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid | 105 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid |
| 106 // even if the opened directory is subsequently moved -- e.g., closer to the | 106 // even if the opened directory is subsequently moved -- e.g., closer to the |
| 107 // "root") | 107 // "root") |
| 108 // TODO(vtl): Add a "watch"? | 108 // TODO(vtl): Add a "watch"? |
| 109 }; | 109 }; |
| OLD | NEW |