chromium/third_party/blink/renderer/modules/webcodecs/codec_pressure_manager_provider.h

// 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.

#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_CODEC_PRESSURE_MANAGER_PROVIDER_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_CODEC_PRESSURE_MANAGER_PROVIDER_H_

#include "base/task/sequenced_task_runner.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/supplementable.h"

namespace blink {

class CodecPressureManager;

// Simple supplement to lazily create a single CodecPressureManager for encoders
// or decoders, per ExecutionContext.
class MODULES_EXPORT CodecPressureManagerProvider
    : public GarbageCollected<CodecPressureManagerProvider>,
      public Supplement<ExecutionContext> {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_CODEC_PRESSURE_MANAGER_PROVIDER_H_