#include "third_party/blink/renderer/core/workers/global_scope_creation_params.h"
#include <memory>
#include "base/feature_list.h"
#include "base/task/single_thread_task_runner.h"
#include "net/storage_access_api/status.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/script/script_type.mojom-blink.h"
#include "third_party/blink/renderer/platform/network/content_security_policy_parsers.h"
namespace blink {
GlobalScopeCreationParams::GlobalScopeCreationParams(
const KURL& script_url,
mojom::blink::ScriptType script_type,
const String& global_scope_name,
const String& user_agent,
const std::optional<UserAgentMetadata>& ua_metadata,
scoped_refptr<WebWorkerFetchContext> web_worker_fetch_context,
Vector<network::mojom::blink::ContentSecurityPolicyPtr>
outside_content_security_policies,
Vector<network::mojom::blink::ContentSecurityPolicyPtr>
response_content_security_policies,
network::mojom::ReferrerPolicy referrer_policy,
const SecurityOrigin* starter_origin,
bool starter_secure_context,
HttpsState starter_https_state,
WorkerClients* worker_clients,
std::unique_ptr<WebContentSettingsClient> content_settings_client,
const Vector<mojom::blink::OriginTrialFeature>* inherited_trial_features,
const base::UnguessableToken& parent_devtools_token,
std::unique_ptr<WorkerSettings> worker_settings,
mojom::blink::V8CacheOptions v8_cache_options,
WorkletModuleResponsesMap* module_responses_map,
mojo::PendingRemote<mojom::blink::BrowserInterfaceBroker>
browser_interface_broker,
mojo::PendingRemote<mojom::blink::CodeCacheHost> code_cache_host_interface,
mojo::PendingRemote<mojom::blink::BlobURLStore> blob_url_store,
BeginFrameProviderParams begin_frame_provider_params,
const PermissionsPolicy* parent_permissions_policy,
base::UnguessableToken agent_cluster_id,
ukm::SourceId ukm_source_id,
const std::optional<ExecutionContextToken>& parent_context_token,
bool parent_cross_origin_isolated_capability,
bool parent_is_isolated_context,
InterfaceRegistry* interface_registry,
scoped_refptr<base::SingleThreadTaskRunner>
agent_group_scheduler_compositor_task_runner,
const SecurityOrigin* top_level_frame_security_origin,
net::StorageAccessApiStatus parent_storage_access_api_status,
bool require_cross_site_request_for_cookies,
scoped_refptr<SecurityOrigin> origin_to_use)
: … { … }
}