chromium/third_party/blink/renderer/platform/loader/fetch/background_code_cache_host.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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_BACKGROUND_CODE_CACHE_HOST_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_BACKGROUND_CODE_CACHE_HOST_H_

#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/mojom/loader/code_cache.mojom-blink.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/renderer/platform/wtf/thread_safe_ref_counted.h"

namespace base {
class SequencedTaskRunner;
}  // namespace base

namespace blink {

class CodeCacheHost;

// BackgroundCodeCacheHost is used for loading code cache from CodeCacheHost on
// a background thread. Used only when BackgroundResourceFetch feature is
// enabled.
class BLINK_PLATFORM_EXPORT BackgroundCodeCacheHost
    : public ThreadSafeRefCounted<BackgroundCodeCacheHost> {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_BACKGROUND_CODE_CACHE_HOST_H_