Home | History | Annotate | Download | only in extensions

Lines Matching refs:disk

40     const chromeos::MountLibrary::Disk* disk) {
42 result->SetString("mountPath", disk->mount_path());
43 result->SetString("label", disk->device_label());
44 result->SetString("deviceType", DeviceTypeToString(disk->device_type()));
45 result->SetInteger("totalSizeKB", disk->total_size() / 1024);
46 result->SetBoolean("readOnly", disk->is_read_only());
92 const chromeos::MountLibrary::Disk* disk) {
94 OnDiskAdded(disk);
96 OnDiskRemoved(disk);
98 OnDiskChanged(disk);
115 const chromeos::MountLibrary::Disk* disk, bool added) {
126 DictionaryValue* disk_info = DiskToDictionaryValue(disk);
137 const chromeos::MountLibrary::Disk* disk) {
138 VLOG(1) << "Disk added: " << disk->device_path();
139 if (disk->device_path().empty()) {
140 VLOG(1) << "Empty system path for " << disk->device_path();
143 if (disk->is_parent()) {
144 if (!disk->has_media())
145 HideDeviceNotification(disk->system_path());
149 // If disk is not mounted yet, give it a try.
150 if (disk->mount_path().empty()) {
151 // Initiate disk mount operation.
154 lib->MountPath(disk->device_path().c_str());
159 const chromeos::MountLibrary::Disk* disk) {
160 VLOG(1) << "Disk removed: " << disk->device_path();
161 HideDeviceNotification(disk->system_path());
162 MountPointMap::iterator iter = mounted_devices_.find(disk->device_path());
170 lib->UnmountPath(disk->device_path().c_str());
172 DispatchEvent(disk, false);
177 const chromeos::MountLibrary::Disk* disk) {
178 VLOG(1) << "Disk changed : " << disk->device_path();
179 if (!disk->mount_path().empty()) {
180 HideDeviceNotification(disk->system_path());
182 if (mounted_devices_.find(disk->device_path()) == mounted_devices_.end()) {
184 std::pair<std::string, std::string>(disk->device_path(),
185 disk->mount_path()));
186 DispatchEvent(disk, true);
187 HideDeviceNotification(disk->system_path());
188 FileManagerUtil::ShowFullTabUrl(profile_, FilePath(disk->mount_path()));