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 <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 | 14 |
14 class PrefRegistrySimple; | 15 class PrefRegistrySimple; |
15 | 16 |
16 namespace chromeos { | 17 namespace chromeos { |
17 | 18 |
18 // Keeps track of mount points for different users. | 19 // Keeps track of mount points for different users. |
19 class MountManager { | 20 class MountManager { |
20 public: | 21 public: |
21 // Returns a shared instance of a MountManager. Not thread-safe, | 22 // Returns a shared instance of a MountManager. Not thread-safe, |
(...skipping 19 matching lines...) Expand all Loading... |
41 UserToPathMap additional_mounts_; | 42 UserToPathMap additional_mounts_; |
42 | 43 |
43 static MountManager* instance_; | 44 static MountManager* instance_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(MountManager); | 46 DISALLOW_COPY_AND_ASSIGN(MountManager); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace chromeos | 49 } // namespace chromeos |
49 | 50 |
50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOUNT_MANAGER_H_ |
OLD | NEW |