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

Side by Side Diff: chrome/browser/storage_monitor/storage_monitor_mac.h

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 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 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_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_
7 7
8 #include <DiskArbitration/DiskArbitration.h> 8 #include <DiskArbitration/DiskArbitration.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static void DiskDisappearedCallback(DADiskRef disk, void* context); 51 static void DiskDisappearedCallback(DADiskRef disk, void* context);
52 static void DiskDescriptionChangedCallback(DADiskRef disk, 52 static void DiskDescriptionChangedCallback(DADiskRef disk,
53 CFArrayRef keys, 53 CFArrayRef keys,
54 void *context); 54 void *context);
55 void GetDiskInfoAndUpdate(DADiskRef disk, UpdateType update_type); 55 void GetDiskInfoAndUpdate(DADiskRef disk, UpdateType update_type);
56 56
57 bool ShouldPostNotificationForDisk(const StorageInfo& info) const; 57 bool ShouldPostNotificationForDisk(const StorageInfo& info) const;
58 bool FindDiskWithMountPoint(const base::FilePath& mount_point, 58 bool FindDiskWithMountPoint(const base::FilePath& mount_point,
59 StorageInfo* info) const; 59 StorageInfo* info) const;
60 60
61 base::mac::ScopedCFTypeRef<DASessionRef> session_; 61 base::ScopedCFTypeRef<DASessionRef> session_;
62 // Maps disk bsd names to disk info objects. This map tracks all mountable 62 // Maps disk bsd names to disk info objects. This map tracks all mountable
63 // devices on the system, though only notifications for removable devices are 63 // devices on the system, though only notifications for removable devices are
64 // posted. 64 // posted.
65 std::map<std::string, StorageInfo> disk_info_map_; 65 std::map<std::string, StorageInfo> disk_info_map_;
66 66
67 int pending_disk_updates_; 67 int pending_disk_updates_;
68 68
69 scoped_ptr<chrome::ImageCaptureDeviceManager> image_capture_device_manager_; 69 scoped_ptr<chrome::ImageCaptureDeviceManager> image_capture_device_manager_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(StorageMonitorMac); 71 DISALLOW_COPY_AND_ASSIGN(StorageMonitorMac);
72 }; 72 };
73 73
74 } // namespace chrome 74 } // namespace chrome
75 75
76 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_ 76 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_MONITOR_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control_mac.mm ('k') | chrome/browser/storage_monitor/storage_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698