#include "extensions/browser/api/system_storage/system_storage_api.h"
#include "base/functional/bind.h"
#include "base/task/thread_pool.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/api/system_storage/storage_info_provider.h"
StorageMonitor;
namespace extensions {
StorageUnitInfo;
EjectDevice;
GetAvailableCapacity;
ExtensionFunction::ResponseAction SystemStorageGetInfoFunction::Run() { … }
void SystemStorageGetInfoFunction::OnGetStorageInfoCompleted(bool success) { … }
ExtensionFunction::ResponseAction SystemStorageEjectDeviceFunction::Run() { … }
void SystemStorageEjectDeviceFunction::OnStorageMonitorInit(
const std::string& transient_device_id) { … }
void SystemStorageEjectDeviceFunction::HandleResponse(
StorageMonitor::EjectStatus status) { … }
SystemStorageGetAvailableCapacityFunction::
SystemStorageGetAvailableCapacityFunction()
: … { … }
SystemStorageGetAvailableCapacityFunction::
~SystemStorageGetAvailableCapacityFunction() = default;
ExtensionFunction::ResponseAction
SystemStorageGetAvailableCapacityFunction::Run() { … }
void SystemStorageGetAvailableCapacityFunction::OnStorageMonitorInit(
const std::string& transient_id) { … }
void SystemStorageGetAvailableCapacityFunction::OnQueryCompleted(
const std::string& transient_id,
double available_capacity) { … }
}