Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: chrome/browser/chromeos/cros/mount_library.h

Issue 7583041: Adding a format device button to UI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Style fixes Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698