ben | 768c8dc | 2016-08-12 00:26:50 | [diff] [blame] | 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 | #ifndef SERVICES_FILE_USER_ID_MAP_H_ |
| 6 | #define SERVICES_FILE_USER_ID_MAP_H_ |
| 7 | |
ben | 768c8dc | 2016-08-12 00:26:50 | [diff] [blame] | 8 | #include "base/files/file_path.h" |
| 9 | |
Ken Rockot | da7edc6 | 2018-11-10 01:01:45 | [diff] [blame] | 10 | namespace base { |
| 11 | class Token; |
| 12 | } |
| 13 | |
ben | 768c8dc | 2016-08-12 00:26:50 | [diff] [blame] | 14 | namespace file { |
| 15 | |
| 16 | // These methods are called from BrowserContext::Initialize() to associate |
Ken Rockot | da7edc6 | 2018-11-10 01:01:45 | [diff] [blame] | 17 | // the BrowserContext's Service instance group with its user directory. |
| 18 | // |
| 19 | // TODO(https://crbug.com/895591): Rename this file. |
| 20 | void AssociateServiceInstanceGroupWithUserDir(const base::Token& instance_group, |
| 21 | const base::FilePath& user_dir); |
| 22 | void ForgetServiceInstanceGroupUserDirAssociation( |
| 23 | const base::Token& instance_group); |
ben | 768c8dc | 2016-08-12 00:26:50 | [diff] [blame] | 24 | |
Ken Rockot | da7edc6 | 2018-11-10 01:01:45 | [diff] [blame] | 25 | base::FilePath GetUserDirForInstanceGroup(const base::Token& instance_group); |
ben | 768c8dc | 2016-08-12 00:26:50 | [diff] [blame] | 26 | |
| 27 | } // namespace file |
| 28 | |
| 29 | #endif // SERVICES_FILE_USER_ID_MAP_H_ |