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