Home | History | Annotate | Download | only in imageburner

Lines Matching refs:Disk

21 // Returns true when |disk| is a device on which we can burn recovery image.
22 bool IsBurnableDevice(const DiskMountManager::Disk& disk) {
23 return disk.is_parent() && !disk.on_boot_device() && disk.has_media() &&
24 (disk.device_type() == DEVICE_TYPE_USB ||
25 disk.device_type() == DEVICE_TYPE_SD);
46 std::vector<DiskMountManager::Disk> BurnDeviceHandler::GetBurnableDevices() {
48 std::vector<DiskMountManager::Disk> result;
52 const DiskMountManager::Disk& disk = *iter->second;
53 if (IsBurnableDevice(disk))
54 result.push_back(disk);
60 const DiskMountManager::Disk* disk) {
62 if (!IsBurnableDevice(*disk))
67 add_callback_.Run(*disk);
70 remove_callback_.Run(*disk);