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