Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_DISK_INFO_MAC_H_ | |
| 6 #define CHROME_BROWSER_SYSTEM_MONITOR_DISK_INFO_MAC_H_ | |
| 7 | |
| 8 #include <CoreFoundation/CoreFoundation.h> | |
| 9 | |
| 10 #include "base/file_path.h" | |
| 11 #include "chrome/browser/system_monitor/media_storage_util.h" | |
| 12 | |
| 13 namespace chrome { | |
| 14 | |
| 15 // This class stores information about a particular disk. | |
| 16 class DiskInfoMac { | |
| 17 public: | |
| 18 DiskInfoMac(); | |
| 19 ~DiskInfoMac(); | |
| 20 | |
| 21 // Creates a disk info object based on information from the given | |
| 22 // dictionary. This function must be called on the file thread. | |
| 23 static DiskInfoMac BuildDiskInfoOnFileThread(CFDictionaryRef dict); | |
| 24 | |
| 25 const std::string& bsd_name() const { return bsd_name_; } | |
| 26 const std::string& device_id() const { return device_id_; } | |
| 27 const string16 display_name() const { return display_name_; } | |
|
Mark Mentovai
2012/09/12 21:12:43
Why does this one not return a reference, while th
sail
2012/09/12 22:38:26
Done.
Oops, Fixed.
| |
| 28 const FilePath& mount_point() const { return mount_point_; } | |
| 29 MediaStorageUtil::Type type() const { return type_; } | |
| 30 | |
| 31 private: | |
| 32 std::string bsd_name_; | |
| 33 std::string device_id_; | |
| 34 string16 display_name_; | |
| 35 FilePath mount_point_; | |
| 36 MediaStorageUtil::Type type_; | |
| 37 }; | |
| 38 | |
| 39 } // namespace chrome | |
| 40 | |
| 41 #endif // CHROME_BROWSER_SYSTEM_MONITOR_DISK_INFO_MAC_H_ | |
| OLD | NEW |