| OLD | NEW |
| 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 CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| 6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Notifies observers about device status update. | 97 // Notifies observers about device status update. |
| 98 void NotifyDeviceChanged(DeviceEvent event, | 98 void NotifyDeviceChanged(DeviceEvent event, |
| 99 const std::string& path); | 99 const std::string& path); |
| 100 | 100 |
| 101 // Notifies observers about disk status update. | 101 // Notifies observers about disk status update. |
| 102 void NotifyDiskChanged(DiskEvent event, | 102 void NotifyDiskChanged(DiskEvent event, |
| 103 const DiskMountManager::Disk* disk); | 103 const DiskMountManager::Disk* disk); |
| 104 | 104 |
| 105 // The list of observers. | 105 // The list of observers. |
| 106 ObserverList<DiskMountManager::Observer> observers_; | 106 base::ObserverList<DiskMountManager::Observer> observers_; |
| 107 | 107 |
| 108 // The list of disks found. | 108 // The list of disks found. |
| 109 DiskMountManager::DiskMap disks_; | 109 DiskMountManager::DiskMap disks_; |
| 110 | 110 |
| 111 // The list of existing mount points. | 111 // The list of existing mount points. |
| 112 DiskMountManager::MountPointMap mount_points_; | 112 DiskMountManager::MountPointMap mount_points_; |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); | 114 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace disks | 117 } // namespace disks |
| 118 } // namespace chromeos | 118 } // namespace chromeos |
| 119 | 119 |
| 120 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 120 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| OLD | NEW |