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

Side by Side Diff: components/profile_service/public/interfaces/profile.mojom

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark. Created 4 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 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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698