chromium/components/storage_monitor/media_storage_util.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

// static
bool MediaStorageUtil::HasDcim(const base::FilePath& mount_point) {}

// static
bool MediaStorageUtil::CanCreateFileSystem(const std::string& device_id,
                                           const base::FilePath& path) {}

// static
void MediaStorageUtil::FilterAttachedDevices(DeviceIdSet* devices,
                                             base::OnceClosure done) {}

// TODO(kmadhusu) Write unit tests for GetDeviceInfoFromPath().
// static
bool MediaStorageUtil::GetDeviceInfoFromPath(const base::FilePath& path,
                                             StorageInfo* device_info,
                                             base::FilePath* relative_path) {}

// static
base::FilePath MediaStorageUtil::FindDevicePathById(
    const std::string& device_id) {}

// static
bool MediaStorageUtil::IsRemovableStorageAttached(const std::string& id) {}

}  // namespace storage_monitor