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

Side by Side Diff: services/user/public/interfaces/user_service.mojom

Issue 1879233002: Move components\profile_service to services\user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move3
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « services/user/public/interfaces/BUILD.gn ('k') | services/user/user.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « services/user/public/interfaces/BUILD.gn ('k') | services/user/user.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698