OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
| 9 #include <memory> |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 | 14 |
15 class PrefRegistrySimple; | 15 class PrefRegistrySimple; |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 // Keeps track of mount points for different users. | 19 // Keeps track of mount points for different users. |
20 class MountManager { | 20 class MountManager { |
21 public: | 21 public: |
22 // Returns a shared instance of a MountManager. Not thread-safe, | 22 // Returns a shared instance of a MountManager. Not thread-safe, |
23 // should only be called from the main UI thread. | 23 // should only be called from the main UI thread. |
(...skipping 18 matching lines...) Expand all Loading... |
42 UserToPathMap additional_mounts_; | 42 UserToPathMap additional_mounts_; |
43 | 43 |
44 static MountManager* instance_; | 44 static MountManager* instance_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(MountManager); | 46 DISALLOW_COPY_AND_ASSIGN(MountManager); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace chromeos | 49 } // namespace chromeos |
50 | 50 |
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ |
OLD | NEW |