#include "content/browser/shared_storage/shared_storage_url_loader_factory_proxy.h"
#include <stdint.h>
#include <utility>
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/strings/escape.h"
#include "base/strings/string_util.h"
#include "content/public/browser/global_request_id.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "net/base/isolation_info.h"
#include "net/cookies/site_for_cookies.h"
#include "net/http/http_request_headers.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
SharedStorageURLLoaderFactoryProxy::SharedStorageURLLoaderFactoryProxy(
mojo::PendingRemote<network::mojom::URLLoaderFactory>
frame_url_loader_factory,
mojo::PendingReceiver<network::mojom::URLLoaderFactory> pending_receiver,
const url::Origin& frame_origin,
const url::Origin& data_origin,
const GURL& script_url,
network::mojom::CredentialsMode credentials_mode,
const net::SiteForCookies& site_for_cookies)
: … { … }
SharedStorageURLLoaderFactoryProxy::~SharedStorageURLLoaderFactoryProxy() =
default;
void SharedStorageURLLoaderFactoryProxy::CreateLoaderAndStart(
mojo::PendingReceiver<network::mojom::URLLoader> receiver,
int32_t request_id,
uint32_t options,
const network::ResourceRequest& url_request,
mojo::PendingRemote<network::mojom::URLLoaderClient> client,
const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) { … }
void SharedStorageURLLoaderFactoryProxy::Clone(
mojo::PendingReceiver<network::mojom::URLLoaderFactory> receiver) { … }
}