// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_CAPABILITIES_VIDEO_DECODE_STATS_DB_PROVIDER_H_ #define MEDIA_CAPABILITIES_VIDEO_DECODE_STATS_DB_PROVIDER_H_ #include "base/functional/callback_forward.h" #include "media/base/media_export.h" namespace media { class VideoDecodeStatsDB; // Interface for extracting a pointer to the DB from its owner. DB lifetime is // assumed to match that of the provider. Callers must not use DB after provider // has been destroyed. This allows sharing a "seed" DB instance between an // Incognito profile and the original profile, which re-uses the in-memory // cache for that DB and avoids race conditions of instantiating a second DB // that reads the same files. class MEDIA_EXPORT VideoDecodeStatsDBProvider { … }; } // namespace media #endif // MEDIA_CAPABILITIES_VIDEO_DECODE_STATS_DB_PROVIDER_H_