chromium/content/browser/worker_host/shared_worker_connector_impl.cc

// 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.

#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 {

// static
void SharedWorkerConnectorImpl::Create(
    GlobalRenderFrameHostId client_render_frame_host_id,
    mojo::PendingReceiver<blink::mojom::SharedWorkerConnector> receiver) {}

// static
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) {}

}  // namespace content