OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module profile; | |
6 | |
7 import "components/filesystem/public/interfaces/directory.mojom"; | |
8 import "components/filesystem/public/interfaces/types.mojom"; | |
9 | |
10 // An encapsulation around the per-profile storage. | |
11 // | |
12 // TODO(erg): A Profile should be strongly bound to a User; eventually, during | |
13 // startup of the Profile process, we sandbox the process so the only directory | |
14 // it has access to is the User's profile. | |
15 interface ProfileService { | |
16 // Returns the user profile directory. | |
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_path, filesystem.Directory& dir) | |
22 => (filesystem.FileError err); | |
23 }; | |
OLD | NEW |