Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: mojo/services/files/public/interfaces/directory.mojom

Issue 1013313002: Move services/files/*.mojom -> mojo/services/files/public/interfaces/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 mojo.files; 5 module mojo.files;
6 6
7 import "services/files/file.mojom"; 7 import "files/public/interfaces/file.mojom";
8 import "services/files/types.mojom"; 8 import "files/public/interfaces/types.mojom";
9 9
10 // This interface provides access to a directory in a "file system", providing 10 // This interface provides access to a directory in a "file system", providing
11 // operations such as creating/opening/removing/renaming files/directories 11 // operations such as creating/opening/removing/renaming files/directories
12 // within it. Note that all relative |path| arguments are relative to "this" 12 // within it. Note that all relative |path| arguments are relative to "this"
13 // directory (i.e., "this" directory functions as the current working directory 13 // directory (i.e., "this" directory functions as the current working directory
14 // for the various operations). 14 // for the various operations).
15 // TODO(vtl): Paths may be relative; should they allowed to be absolute? 15 // TODO(vtl): Paths may be relative; should they allowed to be absolute?
16 // (Currently not.) 16 // (Currently not.)
17 interface Directory { 17 interface Directory {
18 // Operations about "this" |Directory|: 18 // Operations about "this" |Directory|:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // TODO(vtl): directory "streaming"? 54 // TODO(vtl): directory "streaming"?
55 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that 55 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that
56 // this would require a much more complicated implementation (e.g., it needs 56 // this would require a much more complicated implementation (e.g., it needs
57 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid 57 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid
58 // even if the opened directory is subsequently moved -- e.g., closer to the 58 // even if the opened directory is subsequently moved -- e.g., closer to the
59 // "root") 59 // "root")
60 // TODO(vtl): Add a "watch"? 60 // TODO(vtl): Add a "watch"?
61 // TODO(vtl): Should we have a "close" method? 61 // TODO(vtl): Should we have a "close" method?
62 // TODO(vtl): Add Dup() and Reopen() (like File)? 62 // TODO(vtl): Add Dup() and Reopen() (like File)?
63 }; 63 };
OLDNEW
« no previous file with comments | « mojo/services/files/public/interfaces/BUILD.gn ('k') | mojo/services/files/public/interfaces/file.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698