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

Side by Side Diff: chrome/browser/system_monitor/disk_info_mac.h

Issue 10919185: Implement RemovableDeviceNotifications for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix threading Created 8 years, 3 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
(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. This class is not
16 // thread safe and must only be used from the file thread.
Nico 2012/09/10 07:02:34 Looks like only the static function isn't threadsa
sail 2012/09/10 21:58:43 Done.
17 class DiskInfoMac {
18 public:
19 DiskInfoMac();
20 ~DiskInfoMac();
21
22 static DiskInfoMac BuildDiskInfoOnFileThread(CFDictionaryRef dict);
23
24 const std::string& bsd_name() const { return bsd_name_; }
25 const std::string& device_id() const { return device_id_; }
26 const string16 display_name() const { return display_name_; }
27 const FilePath& mount_point() const { return mount_point_; }
28 MediaStorageUtil::Type type() const { return type_; }
29
30 private:
31 std::string bsd_name_;
32 std::string device_id_;
33 string16 display_name_;
34 FilePath mount_point_;
35 MediaStorageUtil::Type type_;
vandebo (ex-Chrome) 2012/09/10 18:45:03 You don't really need to store type separate from
sail 2012/09/10 21:58:43 Yea, it seemed easier to store it than breaking ap
36 };
37
38 } // namespace chrome
39
40 #endif // CHROME_BROWSER_SYSTEM_MONITOR_DISK_INFO_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698