/external/chromium_org/chrome/browser/storage_monitor/ |
D | media_storage_util.cc | 40 typedef std::vector<StorageInfo> StorageInfoList; 49 && StorageInfo::IsRemovableDevice(device_id)) in FindRemovableStorageLocationById() 62 StorageInfo::Type type; in FilterAttachedDevicesOnFileThread() 64 if (!StorageInfo::CrackDeviceId(*it, &type, &unique_id)) { in FilterAttachedDevicesOnFileThread() 69 if (type == StorageInfo::FIXED_MASS_STORAGE || in FilterAttachedDevicesOnFileThread() 70 type == StorageInfo::ITUNES || in FilterAttachedDevicesOnFileThread() 71 type == StorageInfo::IPHOTO || in FilterAttachedDevicesOnFileThread() 72 type == StorageInfo::PICASA) { in FilterAttachedDevicesOnFileThread() 110 StorageInfo::Type type; in CanCreateFileSystem() 111 if (!StorageInfo::CrackDeviceId(device_id, &type, NULL)) in CanCreateFileSystem() [all …]
|
D | storage_info_unittest.cc | 18 StorageInfo::MakeDeviceId(StorageInfo::MTP_OR_PTP, kUniqueId); in TEST() 25 StorageInfo::Type type; in TEST() 27 ASSERT_TRUE(StorageInfo::CrackDeviceId(kMtpDeviceId, &type, &id)); in TEST() 29 EXPECT_EQ(StorageInfo::MTP_OR_PTP, type); in TEST() 33 StorageInfo::Type type; in TEST() 35 ASSERT_TRUE(StorageInfo::CrackDeviceId(kImageCaptureDeviceId, &type, &id)); in TEST() 36 EXPECT_EQ(StorageInfo::MAC_IMAGE_CAPTURE, type); in TEST()
|
D | storage_info.cc | 23 StorageInfo::StorageInfo() : total_size_in_bytes_(0) { in StorageInfo() function in StorageInfo 26 StorageInfo::StorageInfo(const std::string& device_id_in, in StorageInfo() function in StorageInfo 42 StorageInfo::~StorageInfo() { in ~StorageInfo() 46 std::string StorageInfo::MakeDeviceId(Type type, const std::string& unique_id) { in MakeDeviceId() 71 bool StorageInfo::CrackDeviceId(const std::string& device_id, in CrackDeviceId() 108 bool StorageInfo::IsMediaDevice(const std::string& device_id) { in IsMediaDevice() 116 bool StorageInfo::IsRemovableDevice(const std::string& device_id) { in IsRemovableDevice() 126 bool StorageInfo::IsMassStorageDevice(const std::string& device_id) { in IsMassStorageDevice() 138 bool StorageInfo::IsITunesDevice(const std::string& device_id) { in IsITunesDevice() 144 bool StorageInfo::IsIPhotoDevice(const std::string& device_id) { in IsIPhotoDevice() [all …]
|
D | mock_removable_storage_observer.h | 16 virtual void OnRemovableStorageAttached(const StorageInfo& info) OVERRIDE; 18 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE; 24 const StorageInfo& last_attached() { in last_attached() 28 const StorageInfo& last_detached() { in last_detached() 35 StorageInfo last_attached_; 36 StorageInfo last_detached_;
|
D | storage_monitor_win.cc | 63 StorageInfo* device_info) const { in GetStorageInfoForPath() 69 std::vector<StorageInfo> attached_devices = GetAllAvailableStorages(); in GetStorageInfoForPath() 73 if (!StorageInfo::IsRemovableDevice(attached_devices[i].device_id())) in GetStorageInfoForPath() 98 StorageInfo::Type type; in EjectDevice() 99 if (!StorageInfo::CrackDeviceId(device_id, &type, NULL)) { in EjectDevice() 104 if (type == StorageInfo::MTP_OR_PTP) in EjectDevice() 106 else if (StorageInfo::IsRemovableDevice(device_id)) in EjectDevice() 116 StorageInfo::Type type; in GetMTPStorageInfoFromDeviceId() 117 StorageInfo::CrackDeviceId(storage_device_id, &type, NULL); in GetMTPStorageInfoFromDeviceId() 118 return ((type == StorageInfo::MTP_OR_PTP) && in GetMTPStorageInfoFromDeviceId() [all …]
|
D | test_volume_mount_watcher_win.cc | 56 StorageInfo* info) { in GetMassStorageDeviceDetails() 66 StorageInfo::Type type = StorageInfo::FIXED_MASS_STORAGE; in GetMassStorageDeviceDetails() 70 type = StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM; in GetMassStorageDeviceDetails() 75 std::string device_id = StorageInfo::MakeDeviceId(type, unique_id); in GetMassStorageDeviceDetails() 77 *info = StorageInfo(device_id, base::string16(), path.value(), storage_label, in GetMassStorageDeviceDetails() 98 StorageInfo info(device_id, device_name, device_path.value(), in AddDeviceForTesting() 133 StorageInfo info; in GetDeviceRemovable() 135 *removable = StorageInfo::IsRemovableDevice(info.device_id()); in GetDeviceRemovable()
|
D | storage_monitor.cc | 23 virtual void ProcessAttach(const StorageInfo& info) OVERRIDE; 33 void StorageMonitor::ReceiverImpl::ProcessAttach(const StorageInfo& info) { in ProcessAttach() 52 std::vector<StorageInfo> StorageMonitor::GetAllAvailableStorages() const { in GetAllAvailableStorages() 53 std::vector<StorageInfo> results; in GetAllAvailableStorages() 139 void StorageMonitor::ProcessAttach(const StorageInfo& info) { in ProcessAttach() 152 if (StorageInfo::IsRemovableDevice(info.device_id())) { in ProcessAttach() 159 StorageInfo info; in ProcessDetach() 170 if (StorageInfo::IsRemovableDevice(info.device_id())) { in ProcessDetach()
|
D | storage_monitor_mac.mm | 38 StorageInfo::Type GetDeviceType(bool is_removable, bool has_dcim) { 40 return StorageInfo::FIXED_MASS_STORAGE; 42 return StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM; 43 return StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM; 46 StorageInfo BuildStorageInfo( 97 StorageInfo::Type device_type = GetDeviceType(is_removable, has_dcim); 100 device_id = StorageInfo::MakeDeviceId(device_type, unique_id); 102 return StorageInfo(device_id, base::string16(), location.value(), label, 113 StorageInfo info = BuildStorageInfo(dict, &bsd_name); 208 const StorageInfo& info, [all …]
|
D | storage_monitor_mac.h | 36 const StorageInfo& info, 41 StorageInfo* device_info) const OVERRIDE; 55 bool ShouldPostNotificationForDisk(const StorageInfo& info) const; 57 StorageInfo* info) const; 63 std::map<std::string, StorageInfo> disk_info_map_;
|
D | storage_monitor_mac_unittest.mm | 25 StorageInfo CreateStorageInfo( 30 return StorageInfo( 55 device_id_ = StorageInfo::MakeDeviceId( 56 StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM, unique_id_); 61 void UpdateDisk(StorageInfo info, StorageMonitorMac::UpdateType update_type) { 78 StorageInfo disk_info_; 112 StorageInfo info2 = CreateStorageInfo( 135 std::string device_id = StorageInfo::MakeDeviceId( 136 StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM, unique_id_); 137 StorageInfo info = CreateStorageInfo(device_id, "", mount_point, kTestSize); [all …]
|
D | storage_monitor_linux.cc | 115 scoped_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path, in GetDeviceInfo() 120 scoped_ptr<StorageInfo> storage_info; in GetDeviceInfo() 171 StorageInfo::Type type = StorageInfo::FIXED_MASS_STORAGE; in GetDeviceInfo() 174 type = StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM; in GetDeviceInfo() 176 type = StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM; in GetDeviceInfo() 181 storage_info.reset(new StorageInfo( in GetDeviceInfo() 182 StorageInfo::MakeDeviceId(type, unique_id), in GetDeviceInfo() 273 StorageInfo* device_info) const { in GetStorageInfoForPath() 318 StorageInfo::Type type; in EjectDevice() 319 if (!StorageInfo::CrackDeviceId(device_id, &type, NULL)) { in EjectDevice() [all …]
|
D | storage_monitor_chromeos.cc | 49 StorageInfo* info) { in GetDeviceInfo() 66 StorageInfo::Type type = has_dcim ? in GetDeviceInfo() 67 StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM : in GetDeviceInfo() 68 StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM; in GetDeviceInfo() 70 *info = StorageInfo(StorageInfo::MakeDeviceId(type, unique_id), in GetDeviceInfo() 207 StorageInfo* device_info) const { in GetStorageInfoForPath() 246 StorageInfo::Type type; in EjectDevice() 247 if (!StorageInfo::CrackDeviceId(device_id, &type, NULL)) { in EjectDevice() 252 if (type == StorageInfo::MTP_OR_PTP) { in EjectDevice() 296 StorageInfo info; in AddMountedPath()
|
D | storage_monitor.h | 54 virtual void ProcessAttach(const StorageInfo& info) = 0; 96 StorageInfo* device_info) const = 0; 119 std::vector<StorageInfo> GetAllAvailableStorages() const; 154 typedef std::map<std::string, StorageInfo> StorageMap; 156 void ProcessAttach(const StorageInfo& storage);
|
D | volume_mount_watcher_win.h | 44 StorageInfo* info) const; 59 StorageInfo*)> GetDeviceDetailsCallbackType; 67 const StorageInfo& info); 99 typedef std::map<base::FilePath, StorageInfo> MountPointDeviceMetadataMap;
|
D | storage_monitor_linux_unittest.cc | 53 StorageInfo::Type type; 59 StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM, 88788 }, 61 "TEST_USB_MODEL_2", StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM, 64 StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM, 22837 }, 66 StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM, 512 }, 68 StorageInfo::FIXED_MASS_STORAGE, 17282 }, 71 scoped_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path, in GetDeviceInfo() 82 scoped_ptr<StorageInfo> storage_info; in GetDeviceInfo() 88 StorageInfo::Type type = kTestDeviceData[i].type; in GetDeviceInfo() 89 storage_info.reset(new StorageInfo( in GetDeviceInfo() [all …]
|
D | storage_info.h | 11 struct StorageInfo { struct 32 StorageInfo(); argument 34 StorageInfo(const std::string& device_id_in, 41 ~StorageInfo();
|
D | volume_mount_watcher_win.cc | 119 bool GetDeviceDetails(const base::FilePath& device_path, StorageInfo* info) { in GetDeviceDetails() 150 info->set_device_id(StorageInfo::MakeDeviceId( in GetDeviceDetails() 151 StorageInfo::FIXED_MASS_STORAGE, UTF16ToUTF8(guid))); in GetDeviceDetails() 155 StorageInfo::Type type = StorageInfo::FIXED_MASS_STORAGE; in GetDeviceDetails() 157 type = StorageInfo::REMOVABLE_MASS_STORAGE_NO_DCIM; in GetDeviceDetails() 159 type = StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM; in GetDeviceDetails() 170 std::string device_id = StorageInfo::MakeDeviceId(type, UTF16ToUTF8(guid)); in GetDeviceDetails() 174 *info = StorageInfo(device_id, base::string16(), mount_point, in GetDeviceDetails() 387 StorageInfo info; in RetrieveInfoForDeviceAndAdd() 424 StorageInfo* info) const { in GetDeviceInfo() [all …]
|
D | storage_monitor_linux.h | 47 typedef base::Callback<scoped_ptr<StorageInfo>( 66 StorageInfo storage_info; 92 StorageInfo* device_info) const OVERRIDE; 110 scoped_ptr<StorageInfo> storage_info);
|
/external/chromium_org/third_party/WebKit/Source/modules/quota/ |
D | StorageInfo.cpp | 45 StorageInfo::StorageInfo() in StorageInfo() function in WebCore::StorageInfo 50 StorageInfo::~StorageInfo() in ~StorageInfo() 54 void StorageInfo::queryUsageAndQuota(ExecutionContext* executionContext, int storageType, PassOwnPt… in queryUsageAndQuota() 66 void StorageInfo::requestQuota(ExecutionContext* executionContext, int storageType, unsigned long l… in requestQuota() 78 StorageQuota* StorageInfo::getStorageQuota(int storageType) in getStorageQuota()
|
D | StorageInfo.h | 47 class StorageInfo : public RefCounted<StorageInfo>, public ScriptWrappable { 54 static PassRefPtr<StorageInfo> create() in create() 56 return adoptRef(new StorageInfo()); in create() 63 ~StorageInfo(); 66 StorageInfo();
|
D | DOMWindowQuota.h | 40 class StorageInfo; variable 46 static StorageInfo* webkitStorageInfo(DOMWindow*); 47 StorageInfo* webkitStorageInfo() const; 53 mutable RefPtr<StorageInfo> m_storageInfo;
|
D | DOMWindowQuota.cpp | 68 StorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow* window) in webkitStorageInfo() 73 StorageInfo* DOMWindowQuota::webkitStorageInfo() const in webkitStorageInfo() 76 m_storageInfo = StorageInfo::create(); in webkitStorageInfo()
|
/external/chromium_org/chrome/browser/extensions/api/system_storage/ |
D | storage_info_provider.cc | 23 void BuildStorageUnitInfo(const StorageInfo& info, in BuildStorageUnitInfo() 29 unit->type = StorageInfo::IsRemovableDevice(info.device_id()) ? in BuildStorageUnitInfo() 79 std::vector<StorageInfo> storage_list = in GetAllStoragesIntoInfoList() 82 for (std::vector<StorageInfo>::const_iterator it = storage_list.begin(); in GetAllStoragesIntoInfoList() 93 std::vector<StorageInfo> storage_list = in GetStorageFreeSpaceFromTransientIdOnFileThread() 101 for (std::vector<StorageInfo>::const_iterator it = in GetStorageFreeSpaceFromTransientIdOnFileThread()
|
/external/chromium_org/chrome/browser/media_galleries/ |
D | media_galleries_dialog_controller_unittest.cc | 24 gallery.device_id = StorageInfo::MakeDeviceId( in TEST() 25 StorageInfo::FIXED_MASS_STORAGE, "/path/to/gallery"); in TEST() 52 gallery.device_id = StorageInfo::MakeDeviceId( in TEST() 53 StorageInfo::REMOVABLE_MASS_STORAGE_WITH_DCIM, in TEST()
|
/external/chromium_org/chrome/browser/media_galleries/win/ |
D | mtp_device_delegate_impl_win_unittest.cc | 54 std::string AttachDevice(StorageInfo::Type type, 114 StorageInfo info(id, base::string16(), location, label, base::string16(), in ProcessAttach() 120 StorageInfo::Type type, in AttachDevice() 123 std::string device_id = StorageInfo::MakeDeviceId(type, unique_id); in AttachDevice() 124 DCHECK(StorageInfo::IsRemovableDevice(device_id)); in AttachDevice() 153 AttachDevice(StorageInfo::MTP_OR_PTP, "mtp_fake_id", location); in TEST_F()
|