blob: 301107a9496a83301a33aaf3d5d7bcc824bf09d2 [file] [log] [blame]
ben768c8dc2016-08-12 00:26:501// 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
ben768c8dc2016-08-12 00:26:508#include "base/files/file_path.h"
9
Ken Rockotda7edc62018-11-10 01:01:4510namespace base {
11class Token;
12}
13
ben768c8dc2016-08-12 00:26:5014namespace file {
15
16// These methods are called from BrowserContext::Initialize() to associate
Ken Rockotda7edc62018-11-10 01:01:4517// the BrowserContext's Service instance group with its user directory.
18//
19// TODO(https://crbug.com/895591): Rename this file.
20void AssociateServiceInstanceGroupWithUserDir(const base::Token& instance_group,
21 const base::FilePath& user_dir);
22void ForgetServiceInstanceGroupUserDirAssociation(
23 const base::Token& instance_group);
ben768c8dc2016-08-12 00:26:5024
Ken Rockotda7edc62018-11-10 01:01:4525base::FilePath GetUserDirForInstanceGroup(const base::Token& instance_group);
ben768c8dc2016-08-12 00:26:5026
27} // namespace file
28
29#endif // SERVICES_FILE_USER_ID_MAP_H_