OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 virtual void UnmountDeviceRecursive(const char* device_path, | 159 virtual void UnmountDeviceRecursive(const char* device_path, |
160 UnmountDeviceRecursiveCallbackType callback, void* user_data) = 0; | 160 UnmountDeviceRecursiveCallbackType callback, void* user_data) = 0; |
161 | 161 |
162 // Helper functions for parameter conversions. | 162 // Helper functions for parameter conversions. |
163 static std::string MountTypeToString(MountType type); | 163 static std::string MountTypeToString(MountType type); |
164 static MountType MountTypeFromString(const std::string& type_str); | 164 static MountType MountTypeFromString(const std::string& type_str); |
165 | 165 |
166 // Factory function, creates a new instance and returns ownership. | 166 // Factory function, creates a new instance and returns ownership. |
167 // For normal usage, access the singleton via CrosLibrary::Get(). | 167 // For normal usage, access the singleton via CrosLibrary::Get(). |
168 static MountLibrary* GetImpl(bool stub); | 168 static MountLibrary* GetImpl(bool stub); |
169 private: | |
170 virtual std::string FilePathToDevicePath(std::string file_path) = 0; | |
tbarzic
2011/08/12 19:31:13
Please, add this one to MountLibraryImpl, not Moun
sidor.dev
2011/08/12 20:27:09
Done.
| |
169 }; | 171 }; |
170 | 172 |
171 } // namespace chromeos | 173 } // namespace chromeos |
172 | 174 |
173 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ | 175 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ |
OLD | NEW |