OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CROS_MOUNT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void MountChanged(MountLibrary* obj, | 52 virtual void MountChanged(MountLibrary* obj, |
53 MountEventType evt, | 53 MountEventType evt, |
54 const std::string& path) = 0; | 54 const std::string& path) = 0; |
55 }; | 55 }; |
56 | 56 |
57 virtual ~MountLibrary() {} | 57 virtual ~MountLibrary() {} |
58 virtual void AddObserver(Observer* observer) = 0; | 58 virtual void AddObserver(Observer* observer) = 0; |
59 virtual void RemoveObserver(Observer* observer) = 0; | 59 virtual void RemoveObserver(Observer* observer) = 0; |
60 virtual const DiskVector& disks() const = 0; | 60 virtual const DiskVector& disks() const = 0; |
61 virtual bool MountPath(const char* device_path) = 0; | 61 virtual bool MountPath(const char* device_path) = 0; |
| 62 virtual bool IsBootPath(const char* device_path) = 0; |
62 | 63 |
63 // Factory function, creates a new instance and returns ownership. | 64 // Factory function, creates a new instance and returns ownership. |
64 // For normal usage, access the singleton via CrosLibrary::Get(). | 65 // For normal usage, access the singleton via CrosLibrary::Get(). |
65 static MountLibrary* GetImpl(bool stub); | 66 static MountLibrary* GetImpl(bool stub); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace chromeos | 69 } // namespace chromeos |
69 | 70 |
70 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ |
OLD | NEW |