OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 profile; | 5 module profile; |
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 | 9 |
9 // An encapsulation around the per-profile storage. | 10 // An encapsulation around the per-profile storage. |
10 // | 11 // |
11 // TODO(erg): A Profile should be strongly bound to a User; eventually, during | 12 // TODO(erg): A Profile should be strongly bound to a User; eventually, during |
12 // startup of the Profile process, we sandbox the process so the only directory | 13 // startup of the Profile process, we sandbox the process so the only directory |
13 // it has access to is the User's profile. | 14 // it has access to is the User's profile. |
14 interface ProfileService { | 15 interface ProfileService { |
15 // Returns the user profile directory. | 16 // Returns the user profile directory. |
16 GetDirectory(filesystem.Directory& dir); | 17 GetDirectory(filesystem.Directory& dir) => (); |
18 | |
19 // Returns a subdirectory under the profile dir. Returns a filesystem error | |
20 // when we fail to create the subdirectory. | |
21 GetSubDirectory(string dir_name, filesystem.Directory& dir) | |
michaeln
2016/03/17 22:35:41
naming nit: dir_path to match impl
| |
22 => (filesystem.FileError err); | |
17 }; | 23 }; |
OLD | NEW |