#include "third_party/blink/renderer/bindings/modules/v8/v8_worker_global_scope.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_blob.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_event_handler_non_null.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_font_face_set.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_function.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_html_canvas_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_html_image_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_html_video_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_image_bitmap.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_image_bitmap_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_image_data.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_offscreen_canvas.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_performance.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_request.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_request_init.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_response.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_scheduler.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_structured_serialize_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_svg_image_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_trusted_type_policy_factory.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_request_usvstring.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_void_function.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_worker_location.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_worker_navigator.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_ai.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_cache_storage.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_crypto.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_idb_factory.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_translation.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_blob_htmlcanvaselement_htmlimageelement_htmlvideoelement_imagebitmap_imagedata_offscreencanvas_svgimageelement_videoframe.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_video_frame.h"
#include "third_party/blink/renderer/core/css/font_face_set.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fetch/global_fetch.h"
#include "third_party/blink/renderer/core/fetch/request.h"
#include "third_party/blink/renderer/core/fetch/response.h"
#include "third_party/blink/renderer/core/fileapi/blob.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/canvas/html_canvas_element.h"
#include "third_party/blink/renderer/core/html/canvas/image_data.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/html/media/html_video_element.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.h"
#include "third_party/blink/renderer/core/scheduler/dom_scheduler.h"
#include "third_party/blink/renderer/core/scheduler/dom_timer.h"
#include "third_party/blink/renderer/core/svg/svg_image_element.h"
#include "third_party/blink/renderer/core/timing/performance.h"
#include "third_party/blink/renderer/core/timing/worker_global_scope_performance.h"
#include "third_party/blink/renderer/core/trustedtypes/trusted_type_policy_factory.h"
#include "third_party/blink/renderer/core/workers/worker_global_scope.h"
#include "third_party/blink/renderer/core/workers/worker_location.h"
#include "third_party/blink/renderer/core/workers/worker_navigator.h"
#include "third_party/blink/renderer/modules/ai/ai.h"
#include "third_party/blink/renderer/modules/ai/dom_ai.h"
#include "third_party/blink/renderer/modules/cache_storage/cache_storage.h"
#include "third_party/blink/renderer/modules/cache_storage/global_cache_storage.h"
#include "third_party/blink/renderer/modules/canvas/imagebitmap/image_bitmap_factories.h"
#include "third_party/blink/renderer/modules/crypto/crypto.h"
#include "third_party/blink/renderer/modules/crypto/worker_global_scope_crypto.h"
#include "third_party/blink/renderer/modules/indexeddb/global_indexed_db.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_factory.h"
#include "third_party/blink/renderer/modules/on_device_translation/dom_translation.h"
#include "third_party/blink/renderer/modules/on_device_translation/translation.h"
#include "third_party/blink/renderer/modules/webcodecs/video_frame.h"
#include "third_party/blink/renderer/platform/bindings/cooperative_scheduling_helpers.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/idl_member_installer.h"
#include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
void V8WorkerGlobalScope::Impl::Init() { … }
namespace {
namespace v8_worker_global_scope {
void SelfAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LocationAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnerrorAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnerrorAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnlanguagechangeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnlanguagechangeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OntimezonechangeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OntimezonechangeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NavigatorAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnrejectionhandledAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnrejectionhandledAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnunhandledrejectionAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnunhandledrejectionAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsSecureContextAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OriginAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OriginAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TrustedTypesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PerformanceAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PerformanceAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CachesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CryptoAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IndexedDBAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CrossOriginIsolatedAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CrossOriginEmbedderPolicyAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SchedulerAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SchedulerAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AiAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AiAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TranslationAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TranslationAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FontsAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AtobOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BtoaOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ClearIntervalOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ClearTimeoutOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CreateImageBitmapOperationOverload1(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CreateImageBitmapOperationOverload2(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CreateImageBitmapOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FetchOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ImportScriptsOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void QueueMicrotaskOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ReportErrorOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetIntervalOperationOverload1(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetIntervalOperationOverload2(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetIntervalOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetTimeoutOperationOverload1(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetTimeoutOperationOverload2(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetTimeoutOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void StructuredCloneOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_worker_global_scope;
}
void V8WorkerGlobalScope::Impl::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8WorkerGlobalScope::Impl::InstallUnconditionalProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8WorkerGlobalScope::Impl::InstallContextIndependentProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8WorkerGlobalScope::Impl::InstallContextDependentProperties(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> instance_object, v8::Local<v8::Object> prototype_object, v8::Local<v8::Object> interface_object, v8::Local<v8::Template> interface_template, FeatureSelector feature_selector) { … }
}