chromium/third_party/blink/renderer/platform/loader/fetch/url_loader/url_loader_factory.h

// Copyright 2017 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_URL_LOADER_URL_LOADER_FACTORY_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_URL_LOADER_URL_LOADER_FACTORY_H_

#include <memory>
#include <string>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/synchronization/waitable_event.h"
#include "third_party/blink/public/mojom/loader/keep_alive_handle_factory.mojom-blink.h"
#include "third_party/blink/public/platform/cross_variant_mojo_util.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace base {
class SingleThreadTaskRunner;
}

namespace network {
struct ResourceRequest;
class SharedURLLoaderFactory;
}

namespace blink {

class BackForwardCacheLoaderHelper;
class URLLoader;
class URLLoaderThrottle;

// An abstract interface to create a URLLoader. It is expected that each
// loading context holds its own per-context URLLoaderFactory.
class BLINK_PLATFORM_EXPORT URLLoaderFactory {};

// A test version of the above factory interface, which supports cloning the
// factory.
class URLLoaderFactoryForTest : public URLLoaderFactory {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_URL_LOADER_URL_LOADER_FACTORY_H_