chromium/media/capabilities/pending_operations.cc

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

#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 {
// Timeout threshold for DB operations. See OnOperationTimeout().
// NOTE: Used by UmaHistogramOpTime. Change the name if you change the time.
static constexpr base::TimeDelta kPendingOpTimeout =;
}  // namespace

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

}  // namespace media