chromium/content/browser/service_worker/url_loader_client_checker.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 CONTENT_BROWSER_SERVICE_WORKER_URL_LOADER_CLIENT_CHECKER_H_
#define CONTENT_BROWSER_SERVICE_WORKER_URL_LOADER_CLIENT_CHECKER_H_

#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/mojom/early_hints.mojom-forward.h"
#include "services/network/public/mojom/url_loader.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"

namespace content {

// When used as replacement of a
// `mojo::Remote<network::mojom::URLLoaderClient>`, this checks the calling
// order of `network::mojom::URLLoaderClient` methods.
//
// Currently this only implements the assertions and interfaces needed for the
// investigation of https://crbug.com/1346074, and this can be only used to call
// `network::mojom::URLLoaderClient` methods.
class URLLoaderClientCheckedRemote final {};

}  // namespace content

#endif  // CONTENT_BROWSER_SERVICE_WORKER_URL_LOADER_CLIENT_CHECKER_H_