#include "components/storage_monitor/media_storage_util.h"
#include <vector>
#include "base/check_op.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "components/storage_monitor/removable_device_constants.h"
#include "components/storage_monitor/storage_monitor.h"
#include "content/public/browser/browser_thread.h"
namespace storage_monitor {
namespace {
#if !BUILDFLAG(IS_WIN)
const char kRootPath[] = …;
#endif
StorageInfoList;
base::FilePath::StringType FindRemovableStorageLocationById(
const std::string& device_id) { … }
void FilterAttachedDevicesOnBackgroundSequence(
MediaStorageUtil::DeviceIdSet* devices) { … }
}
bool MediaStorageUtil::HasDcim(const base::FilePath& mount_point) { … }
bool MediaStorageUtil::CanCreateFileSystem(const std::string& device_id,
const base::FilePath& path) { … }
void MediaStorageUtil::FilterAttachedDevices(DeviceIdSet* devices,
base::OnceClosure done) { … }
bool MediaStorageUtil::GetDeviceInfoFromPath(const base::FilePath& path,
StorageInfo* device_info,
base::FilePath* relative_path) { … }
base::FilePath MediaStorageUtil::FindDevicePathById(
const std::string& device_id) { … }
bool MediaStorageUtil::IsRemovableStorageAttached(const std::string& id) { … }
}