chromium/content/browser/compute_pressure/pressure_service_for_worker.h

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

#ifndef CONTENT_BROWSER_COMPUTE_PRESSURE_PRESSURE_SERVICE_FOR_WORKER_H_
#define CONTENT_BROWSER_COMPUTE_PRESSURE_PRESSURE_SERVICE_FOR_WORKER_H_

#include <type_traits>

#include "base/export_template.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/sequence_checker.h"
#include "base/thread_annotations.h"
#include "content/browser/compute_pressure/pressure_service_base.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"

namespace content {

class DedicatedWorkerHost;
class SharedWorkerHost;

template <typename WorkerHost>
class EXPORT_TEMPLATE_DECLARE(CONTENT_EXPORT) PressureServiceForWorker
    : public PressureServiceBase {};

extern template class EXPORT_TEMPLATE_DECLARE(CONTENT_EXPORT)
    PressureServiceForWorker<DedicatedWorkerHost>;
extern template class EXPORT_TEMPLATE_DECLARE(CONTENT_EXPORT)
    PressureServiceForWorker<SharedWorkerHost>;

}  // namespace content

#endif  // CONTENT_BROWSER_COMPUTE_PRESSURE_PRESSURE_SERVICE_FOR_WORKER_H_