Searched refs:storage_name (Results 1 - 16 of 16) sorted by relevance

/external/chromium_org/chrome/browser/media_galleries/linux/
H A Dmtp_device_task_helper_map_service.cc25 const std::string& storage_name) {
27 DCHECK(!storage_name.empty());
28 DCHECK(!ContainsKey(task_helper_map_, storage_name));
30 task_helper_map_[storage_name] = task_helper;
35 const std::string& storage_name) {
37 TaskHelperMap::iterator it = task_helper_map_.find(storage_name);
45 const std::string& storage_name) {
47 DCHECK(!storage_name.empty());
48 TaskHelperMap::const_iterator it = task_helper_map_.find(storage_name);
24 CreateDeviceTaskHelper( const std::string& storage_name) argument
34 DestroyDeviceTaskHelper( const std::string& storage_name) argument
44 GetDeviceTaskHelper( const std::string& storage_name) argument
H A Dmtp_device_task_helper_map_service.h22 // specified by the |storage_name|.
23 MTPDeviceTaskHelper* CreateDeviceTaskHelper(const std::string& storage_name);
27 // |storage_name| specifies the name of the storage device.
28 void DestroyDeviceTaskHelper(const std::string& storage_name);
31 // |storage_name| specifies the name of the storage device.
32 // Return NULL if the |storage_name| is no longer valid (e.g. because the
34 MTPDeviceTaskHelper* GetDeviceTaskHelper(const std::string& storage_name);
47 // Mapping of |storage_name| and MTPDeviceTaskHelper*.
H A Dmtp_device_delegate_impl_linux.cc53 // |storage_name| specifies the name of the storage device.
54 // Returns NULL if the |storage_name| is no longer valid (e.g. because the
57 const std::string& storage_name) {
60 storage_name);
68 // |storage_name| specifies the name of the storage device.
72 const std::string& storage_name,
76 GetDeviceTaskHelperForStorage(storage_name);
80 storage_name);
82 task_helper->OpenStorage(storage_name, reply_callback);
90 // |storage_name| specifie
56 GetDeviceTaskHelperForStorage( const std::string& storage_name) argument
71 OpenStorageOnUIThread( const std::string& storage_name, const MTPDeviceTaskHelper::OpenStorageCallback& reply_callback) argument
94 ReadDirectoryOnUIThread( const std::string& storage_name, uint32 dir_id, const MTPDeviceTaskHelper::ReadDirectorySuccessCallback& success_callback, const MTPDeviceTaskHelper::ErrorCallback& error_callback) argument
116 GetFileInfoOnUIThread( const std::string& storage_name, uint32 file_id, const MTPDeviceTaskHelper::GetFileInfoSuccessCallback& success_callback, const MTPDeviceTaskHelper::ErrorCallback& error_callback) argument
142 WriteDataIntoSnapshotFileOnUIThread( const std::string& storage_name, const SnapshotRequestInfo& request_info, const base::File::Info& snapshot_file_info) argument
161 ReadBytesOnUIThread( const std::string& storage_name, const MTPDeviceAsyncDelegate::ReadBytesRequest& request) argument
177 CloseStorageAndDestroyTaskHelperOnUIThread( const std::string& storage_name) argument
[all...]
H A Dmtp_device_task_helper.h47 // |storage_name| specifies the name of the storage device.
50 void OpenStorage(const std::string& storage_name,
H A Dmtp_device_task_helper.cc61 void MTPDeviceTaskHelper::OpenStorage(const std::string& storage_name, argument
64 DCHECK(!storage_name.empty());
72 storage_name, mtpd::kReadOnlyMode,
/external/chromium_org/components/storage_monitor/
H A Dmedia_transfer_protocol_device_observer_linux.cc25 // Constructs and returns the location of the device using the |storage_name|.
26 std::string GetDeviceLocationFromStorageName(const std::string& storage_name) { argument
29 // E.g.: If the |storage_name| is "usb:2,2:12345" then "/usb:2,2:12345" is the
31 DCHECK(!storage_name.empty());
32 return kRootPath + storage_name;
35 // Returns the storage identifier of the device from the given |storage_name|.
36 // E.g. If the |storage_name| is "usb:2,2:65537", the storage identifier is
38 std::string GetStorageIdFromStorageName(const std::string& storage_name) { argument
40 base::SplitString(storage_name, ':', &name_parts);
47 GetStorageIdFromStorageName(storage_info.storage_name());
99 GetStorageInfo(const std::string& storage_name, device::MediaTransferProtocolManager* mtp_manager, std::string* id, base::string16* label, std::string* location, base::string16* vendor_name, base::string16* product_name) argument
190 StorageChanged( bool is_attached, const std::string& storage_name) argument
[all...]
H A Dmedia_transfer_protocol_device_observer_linux_unittest.cc43 void GetStorageInfo(const std::string& storage_name, argument
50 if (storage_name == kStorageWithInvalidInfo)
53 ASSERT_EQ(kStorageWithValidInfo, storage_name);
73 // mtp storage device given the |storage_name|.
74 void MtpStorageAttached(const std::string& storage_name) { argument
75 StorageChanged(true, storage_name);
80 // mtp storage device given the |storage_name|.
81 void MtpStorageDetached(const std::string& storage_name) { argument
82 StorageChanged(false, storage_name);
H A Dmedia_transfer_protocol_device_observer_linux.h21 // Gets the mtp device information given a |storage_name|. On success,
24 const std::string& storage_name,
60 const std::string& storage_name) OVERRIDE;
H A Dtest_media_transfer_protocol_manager_linux.cc27 const std::string& storage_name) const {
32 const std::string& storage_name,
31 OpenStorage( const std::string& storage_name, const std::string& mode, const OpenStorageCallback& callback) argument
H A Dtest_media_transfer_protocol_manager_linux.h25 const std::string& storage_name) const OVERRIDE;
26 virtual void OpenStorage(const std::string& storage_name,
/external/chromium_org/device/media_transfer_protocol/
H A Dmedia_transfer_protocol_daemon_client.h75 const std::string& storage_name)
88 virtual void GetStorageInfo(const std::string& storage_name,
95 virtual void OpenStorage(const std::string& storage_name,
H A Dmedia_transfer_protocol_manager.h70 const std::string& storage_name) = 0;
84 // On success, returns the the metadata for |storage_name|.
87 const std::string& storage_name) const = 0;
89 // Opens |storage_name| in |mode| and runs |callback|.
90 virtual void OpenStorage(const std::string& storage_name,
H A Dmedia_transfer_protocol_manager.cc120 const std::string& storage_name) const OVERRIDE {
122 StorageInfoMap::const_iterator it = storage_info_map_.find(storage_name);
127 virtual void OpenStorage(const std::string& storage_name,
131 if (!ContainsKey(storage_info_map_, storage_name) || !mtp_client_) {
137 storage_name,
239 void OnStorageAttached(const std::string& storage_name) { argument
242 storage_name,
248 void OnStorageDetached(const std::string& storage_name) { argument
250 if (storage_info_map_.erase(storage_name) == 0) {
258 StorageChanged(false /* detach */, storage_name));
261 OnStorageChanged(bool is_attach, const std::string& storage_name) argument
284 const std::string& storage_name = storage_info.storage_name(); local
[all...]
H A Dmedia_transfer_protocol_daemon_client.cc52 virtual void GetStorageInfo(const std::string& storage_name,
57 writer.AppendString(storage_name);
62 storage_name,
68 virtual void OpenStorage(const std::string& storage_name,
74 writer.AppendString(storage_name);
229 void OnGetStorageInfo(const std::string& storage_name, argument
359 std::string storage_name; local
360 if (!reader.PopString(&storage_name)) {
364 DCHECK(!storage_name.empty());
365 handler.Run(is_attach, storage_name);
[all...]
/external/chromium_org/tools/memory_inspector/memory_inspector/frontends/
H A Dwww_server.py519 storage_name = device.id
522 storage_name = backend.name
526 _persistent_storage.StoreSettings(storage_name, settings.values)
/external/chromium_org/chrome/common/extensions/permissions/
H A Dpermission_set_unittest.cc121 std::string storage_name = "unlimitedStorage"; local
122 EXPECT_EQ(storage_name, info->GetByID(

Completed in 1868 milliseconds