#include "third_party/blink/public/platform/tracked_child_url_loader_factory_bundle.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/sequenced_task_runner.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"
namespace blink {
TrackedChildPendingURLLoaderFactoryBundle::
TrackedChildPendingURLLoaderFactoryBundle() = default;
TrackedChildPendingURLLoaderFactoryBundle::
TrackedChildPendingURLLoaderFactoryBundle(
mojo::PendingRemote<network::mojom::URLLoaderFactory>
pending_default_factory,
SchemeMap pending_scheme_specific_factories,
OriginMap pending_isolated_world_factories,
mojo::PendingRemote<network::mojom::URLLoaderFactory>
pending_subresource_proxying_loader_factory,
mojo::PendingRemote<network::mojom::URLLoaderFactory>
pending_keep_alive_loader_factory,
mojo::PendingAssociatedRemote<blink::mojom::FetchLaterLoaderFactory>
pending_fetch_later_loader_factory,
std::unique_ptr<HostPtrAndTaskRunner> main_thread_host_bundle,
bool bypass_redirect_checks)
: … { … }
TrackedChildPendingURLLoaderFactoryBundle::
~TrackedChildPendingURLLoaderFactoryBundle() = default;
bool TrackedChildPendingURLLoaderFactoryBundle::
IsTrackedChildPendingURLLoaderFactoryBundle() const { … }
scoped_refptr<network::SharedURLLoaderFactory>
TrackedChildPendingURLLoaderFactoryBundle::CreateFactory() { … }
TrackedChildURLLoaderFactoryBundle::TrackedChildURLLoaderFactoryBundle(
std::unique_ptr<TrackedChildPendingURLLoaderFactoryBundle>
pending_factories) { … }
TrackedChildURLLoaderFactoryBundle::~TrackedChildURLLoaderFactoryBundle() { … }
std::unique_ptr<network::PendingSharedURLLoaderFactory>
TrackedChildURLLoaderFactoryBundle::Clone() { … }
void TrackedChildURLLoaderFactoryBundle::AddObserverOnMainThread() { … }
void TrackedChildURLLoaderFactoryBundle::RemoveObserverOnMainThread() { … }
void TrackedChildURLLoaderFactoryBundle::OnUpdate(
std::unique_ptr<network::PendingSharedURLLoaderFactory> pending_factories) { … }
HostChildURLLoaderFactoryBundle::HostChildURLLoaderFactoryBundle(
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
HostChildURLLoaderFactoryBundle::~HostChildURLLoaderFactoryBundle() = default;
std::unique_ptr<network::PendingSharedURLLoaderFactory>
HostChildURLLoaderFactoryBundle::Clone() { … }
void HostChildURLLoaderFactoryBundle::UpdateThisAndAllClones(
std::unique_ptr<blink::PendingURLLoaderFactoryBundle> pending_factories) { … }
bool HostChildURLLoaderFactoryBundle::IsHostChildURLLoaderFactoryBundle()
const { … }
void HostChildURLLoaderFactoryBundle::AddObserver(
ObserverKey observer,
std::unique_ptr<ObserverPtrAndTaskRunner> observer_info) { … }
void HostChildURLLoaderFactoryBundle::RemoveObserver(ObserverKey observer) { … }
void HostChildURLLoaderFactoryBundle::NotifyUpdateOnMainOrWorkerThread(
ObserverPtrAndTaskRunner* observer_bundle,
std::unique_ptr<network::PendingSharedURLLoaderFactory> pending_factories) { … }
}