#include "components/metrics/drive_metrics_provider.h"
#include "base/base_paths.h"
#include "base/check_op.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/path_service.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/threading/scoped_blocking_call.h"
namespace metrics {
DriveMetricsProvider::DriveMetricsProvider(int local_state_path_key)
: … { … }
DriveMetricsProvider::~DriveMetricsProvider() { … }
void DriveMetricsProvider::ProvideSystemProfileMetrics(
metrics::SystemProfileProto* system_profile_proto) { … }
void DriveMetricsProvider::AsyncInit(base::OnceClosure done_callback) { … }
DriveMetricsProvider::SeekPenaltyResponse::SeekPenaltyResponse()
: … { … }
DriveMetricsProvider::DriveMetrics
DriveMetricsProvider::GetDriveMetricsOnBackgroundThread(
int local_state_path_key) { … }
void DriveMetricsProvider::QuerySeekPenalty(
int path_service_key,
DriveMetricsProvider::SeekPenaltyResponse* response) { … }
void DriveMetricsProvider::GotDriveMetrics(
base::OnceClosure done_callback,
const DriveMetricsProvider::DriveMetrics& metrics) { … }
void DriveMetricsProvider::FillDriveMetrics(
const DriveMetricsProvider::SeekPenaltyResponse& response,
metrics::SystemProfileProto::Hardware::Drive* drive) { … }
}