#include "content/browser/worker_host/shared_worker_connector_impl.h"
#include "base/memory/ptr_util.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/storage_partition_impl.h"
#include "content/browser/worker_host/shared_worker_service_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "third_party/blink/public/common/messaging/message_port_channel.h"
#include "third_party/blink/public/mojom/blob/blob_url_store.mojom.h"
#include "third_party/blink/public/mojom/worker/shared_worker_info.mojom.h"
namespace content {
void SharedWorkerConnectorImpl::Create(
GlobalRenderFrameHostId client_render_frame_host_id,
mojo::PendingReceiver<blink::mojom::SharedWorkerConnector> receiver) { … }
void SharedWorkerConnectorImpl::Create(
base::PassKey<StorageAccessHandle>,
GlobalRenderFrameHostId client_render_frame_host_id,
const blink::StorageKey& storage_key_override,
mojo::PendingReceiver<blink::mojom::SharedWorkerConnector> receiver) { … }
SharedWorkerConnectorImpl::SharedWorkerConnectorImpl(
GlobalRenderFrameHostId client_render_frame_host_id,
const std::optional<blink::StorageKey>& storage_key_override)
: … { … }
SharedWorkerConnectorImpl::~SharedWorkerConnectorImpl() = default;
void SharedWorkerConnectorImpl::Connect(
blink::mojom::SharedWorkerInfoPtr info,
mojo::PendingRemote<blink::mojom::SharedWorkerClient> client,
blink::mojom::SharedWorkerCreationContextType creation_context_type,
blink::MessagePortDescriptor message_port,
mojo::PendingRemote<blink::mojom::BlobURLToken> blob_url_token,
ukm::SourceId client_ukm_source_id) { … }
}