#include "media/capabilities/pending_operations.h"
#include <string>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/not_fatal_until.h"
#include "base/task/single_thread_task_runner.h"
namespace media {
namespace {
static constexpr base::TimeDelta kPendingOpTimeout = …;
}
PendingOperations::PendingOperation::PendingOperation(
std::string uma_str,
std::unique_ptr<base::CancelableOnceClosure> timeout_closure)
: … { … }
PendingOperations::PendingOperation::~PendingOperation() { … }
void PendingOperations::PendingOperation::UmaHistogramOpTime(
base::TimeDelta duration) { … }
void PendingOperations::PendingOperation::OnTimeout() { … }
PendingOperations::PendingOperations(std::string uma_prefix)
: … { … }
PendingOperations::~PendingOperations() { … }
PendingOperations::Id PendingOperations::Start(std::string_view uma_str) { … }
void PendingOperations::Complete(Id op_id) { … }
void PendingOperations::OnTimeout(Id op_id) { … }
}