#include "media/capabilities/in_memory_video_decode_stats_db_impl.h"
#include <memory>
#include <tuple>
#include "base/files/file_path.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/sequence_checker.h"
#include "base/task/bind_post_task.h"
#include "media/capabilities/video_decode_stats_db_provider.h"
namespace media {
InMemoryVideoDecodeStatsDBImpl::InMemoryVideoDecodeStatsDBImpl(
VideoDecodeStatsDBProvider* seed_db_provider)
: … { … }
InMemoryVideoDecodeStatsDBImpl::~InMemoryVideoDecodeStatsDBImpl() { … }
void InMemoryVideoDecodeStatsDBImpl::Initialize(InitializeCB init_cb) { … }
void InMemoryVideoDecodeStatsDBImpl::OnGotSeedDB(InitializeCB init_cb,
VideoDecodeStatsDB* db) { … }
void InMemoryVideoDecodeStatsDBImpl::AppendDecodeStats(
const VideoDescKey& key,
const DecodeStatsEntry& entry,
AppendDecodeStatsCB append_done_cb) { … }
void InMemoryVideoDecodeStatsDBImpl::GetDecodeStats(
const VideoDescKey& key,
GetDecodeStatsCB get_stats_cb) { … }
void InMemoryVideoDecodeStatsDBImpl::CompleteAppendWithSeedData(
const VideoDescKey& key,
const DecodeStatsEntry& entry,
AppendDecodeStatsCB append_done_cb,
bool read_success,
std::unique_ptr<DecodeStatsEntry> seed_entry) { … }
void InMemoryVideoDecodeStatsDBImpl::OnGotSeedEntry(
const VideoDescKey& key,
GetDecodeStatsCB get_stats_cb,
bool success,
std::unique_ptr<DecodeStatsEntry> seed_entry) { … }
void InMemoryVideoDecodeStatsDBImpl::ClearStats(
base::OnceClosure destroy_done_cb) { … }
}