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

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

Issue 12334096: Regularize ownerships and lifecycle for storage monitor platform classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_ 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_ 6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_
7 7
8 #include <DiskArbitration/DiskArbitration.h> 8 #include <DiskArbitration/DiskArbitration.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool ShouldPostNotificationForDisk(const DiskInfoMac& info) const; 54 bool ShouldPostNotificationForDisk(const DiskInfoMac& info) const;
55 bool FindDiskWithMountPoint(const base::FilePath& mount_point, 55 bool FindDiskWithMountPoint(const base::FilePath& mount_point,
56 DiskInfoMac* info) const; 56 DiskInfoMac* info) const;
57 57
58 base::mac::ScopedCFTypeRef<DASessionRef> session_; 58 base::mac::ScopedCFTypeRef<DASessionRef> session_;
59 // Maps disk bsd names to disk info objects. This map tracks all mountable 59 // Maps disk bsd names to disk info objects. This map tracks all mountable
60 // devices on the system though only notifications for removable devices are 60 // devices on the system though only notifications for removable devices are
61 // posted. 61 // posted.
62 std::map<std::string, DiskInfoMac> disk_info_map_; 62 std::map<std::string, DiskInfoMac> disk_info_map_;
63 63
64 scoped_ptr<chrome::ImageCaptureDeviceManager> image_capture_device_manager_;
65
64 DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsMac); 66 DISALLOW_COPY_AND_ASSIGN(RemovableDeviceNotificationsMac);
65 }; 67 };
66 68
67 } // namespace chrome 69 } // namespace chrome
68 70
69 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_ 71 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_DEVICE_NOTIFICATIONS_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698