chromium/services/network/transitional_url_loader_factory_owner.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_TRANSITIONAL_URL_LOADER_FACTORY_OWNER_H_
#define SERVICES_NETWORK_TRANSITIONAL_URL_LOADER_FACTORY_OWNER_H_

#include <memory>

#include "base/component_export.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/synchronization/atomic_flag.h"
#include "base/task/sequenced_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"

namespace net {
class URLRequestContextGetter;
}

namespace network {

class SharedURLLoaderFactory;
class WeakWrapperSharedURLLoaderFactory;

// This class is intended for stand-alone executables that use net/ and also
// components that use Network Service APIs, and therefore need a
// SharedURLLoaderFactory for fetching. This provides it on top of the existing
// URLRequestContextGetter. This should not be used within the browser process.
//
// All of the methods must be called from the same sequence, which may be
// different from |url_request_context_getter|'s network thread.
class COMPONENT_EXPORT(NETWORK_SERVICE) TransitionalURLLoaderFactoryOwner {};

}  // namespace network

#endif  // SERVICES_NETWORK_TRANSITIONAL_URL_LOADER_FACTORY_OWNER_H_