#include "third_party/blink/renderer/bindings/modules/v8/v8_worker_navigator.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/frozen_array.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_navigator_ua_data.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_hid.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_lock_manager.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_media_capabilities.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_ml.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_network_information.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_permissions.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_serial.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_storage_bucket_manager.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_storage_manager.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_usb.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_wake_lock.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/dactyloscoper.h"
#include "third_party/blink/renderer/core/frame/navigator_ua_data.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/workers/worker_navigator.h"
#include "third_party/blink/renderer/modules/badging/navigator_badge.h"
#include "third_party/blink/renderer/modules/buckets/storage_bucket_manager.h"
#include "third_party/blink/renderer/modules/hid/hid.h"
#include "third_party/blink/renderer/modules/locks/lock_manager.h"
#include "third_party/blink/renderer/modules/media_capabilities/media_capabilities.h"
#include "third_party/blink/renderer/modules/ml/ml.h"
#include "third_party/blink/renderer/modules/ml/navigator_ml.h"
#include "third_party/blink/renderer/modules/netinfo/network_information.h"
#include "third_party/blink/renderer/modules/permissions/permissions.h"
#include "third_party/blink/renderer/modules/quota/navigator_storage_quota.h"
#include "third_party/blink/renderer/modules/quota/storage_manager.h"
#include "third_party/blink/renderer/modules/serial/serial.h"
#include "third_party/blink/renderer/modules/wake_lock/wake_lock.h"
#include "third_party/blink/renderer/modules/webgpu/gpu.h"
#include "third_party/blink/renderer/modules/webusb/usb.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 V8WorkerNavigator::Impl::Init() { … }
namespace {
namespace v8_worker_navigator {
void StorageBucketsAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void HidAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LocksAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void MediaCapabilitiesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void MlAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ConnectionAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PermissionsAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void StorageAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void WakeLockAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void GpuAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void UsbAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SerialAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void HardwareConcurrencyAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DeviceMemoryAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AppCodeNameAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AppNameAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AppVersionAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PlatformAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ProductAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void UserAgentAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LanguageAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LanguagesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnLineAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void UserAgentDataAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ClearAppBadgeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetAppBadgeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_worker_navigator;
}
void V8WorkerNavigator::Impl::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8WorkerNavigator::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 V8WorkerNavigator::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) { … }
}