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 #ifndef SERVICES_FILE_USER_ID_MAP_H_ | 5 #ifndef SERVICES_FILE_USER_ID_MAP_H_ |
6 #define SERVICES_FILE_USER_ID_MAP_H_ | 6 #define SERVICES_FILE_USER_ID_MAP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 | 10 |
11 namespace file { | 11 namespace file { |
12 | 12 |
13 // These methods are called from BrowserContext::Initialize() to associate | 13 // These methods are called from BrowserContext::Initialize() to associate |
14 // the BrowserContext's shell user-id with its user directory. | 14 // the BrowserContext's Service user-id with its user directory. |
15 void AssociateShellUserIdWithUserDir(const std::string& user_id, | 15 void AssociateServiceUserIdWithUserDir(const std::string& user_id, |
16 const base::FilePath& user_dir); | 16 const base::FilePath& user_dir); |
17 void ForgetShellUserIdUserDirAssociation(const std::string& user_id); | 17 void ForgetServiceUserIdUserDirAssociation(const std::string& user_id); |
18 | 18 |
19 base::FilePath GetUserDirForUserId(const std::string& user_id); | 19 base::FilePath GetUserDirForUserId(const std::string& user_id); |
20 | 20 |
21 } // namespace file | 21 } // namespace file |
22 | 22 |
23 #endif // SERVICES_FILE_USER_ID_MAP_H_ | 23 #endif // SERVICES_FILE_USER_ID_MAP_H_ |
OLD | NEW |