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 user_service.mojom; |
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 import "components/filesystem/public/interfaces/types.mojom"; |
9 | 9 |
10 // An encapsulation around the per-profile storage. | 10 // An encapsulation around the per-profile storage. |
11 // | 11 // |
12 // TODO(erg): A Profile should be strongly bound to a User; eventually, during | 12 // TODO(erg): An instance of UserService should be strongly bound to a specific |
13 // startup of the Profile process, we sandbox the process so the only directory | 13 // user id; eventually during startup of the User Service process, we sandbox |
14 // it has access to is the User's profile. | 14 // the process so the only directory it has access to is the user's directory. |
15 interface ProfileService { | 15 interface UserService { |
16 // Returns the user profile directory. | 16 // Returns the user profile directory. |
17 GetDirectory(filesystem.Directory& dir) => (); | 17 GetDirectory(filesystem.Directory& dir) => (); |
18 | 18 |
19 // Returns a subdirectory under the profile dir. Returns a filesystem error | 19 // Returns a subdirectory under the profile dir. Returns a filesystem error |
20 // when we fail to create the subdirectory. | 20 // when we fail to create the subdirectory. |
21 GetSubDirectory(string dir_path, filesystem.Directory& dir) | 21 GetSubDirectory(string dir_path, filesystem.Directory& dir) |
22 => (filesystem.FileError err); | 22 => (filesystem.FileError err); |
23 }; | 23 }; |
OLD | NEW |