chromium/services/network/public/cpp/wrapper_shared_url_loader_factory.h

// 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 SERVICES_NETWORK_PUBLIC_CPP_WRAPPER_SHARED_URL_LOADER_FACTORY_H_
#define SERVICES_NETWORK_PUBLIC_CPP_WRAPPER_SHARED_URL_LOADER_FACTORY_H_

#include "base/component_export.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/mojom/url_loader.mojom.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"

namespace network {

// A PendingSharedURLLoaderFactory implementation that wraps a
// mojo::PendingRemote<network::mojom::URLLoaderFactory>.
class COMPONENT_EXPORT(NETWORK_CPP) WrapperPendingSharedURLLoaderFactory
    : public network::PendingSharedURLLoaderFactory {};

// A SharedURLLoaderFactory implementation that wraps a
// RemoteTemplateType<network::mojom::URLLoaderFactory>.
template <template <typename> class RemoteTemplateType>
class WrapperSharedURLLoaderFactoryBase
    : public network::SharedURLLoaderFactory {};

WrapperSharedURLLoaderFactory;

}  // namespace network

#endif  // SERVICES_NETWORK_PUBLIC_CPP_WRAPPER_SHARED_URL_LOADER_FACTORY_H_