@triniwiz/nativescript-masonkit 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +7 -9
- package/common.js +277 -552
- package/common.js.map +1 -1
- package/helpers.d.ts +32 -10
- package/helpers.js +772 -286
- package/helpers.js.map +1 -1
- package/index.android.d.ts +6 -2
- package/index.android.js +21 -3
- package/index.android.js.map +1 -1
- package/index.d.ts +64 -7
- package/index.ios.d.ts +9 -6
- package/index.ios.js +39 -25
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/include.gradle +18 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +108 -64
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +216 -128
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +43 -43
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/build.xcconfig +1 -2
- package/platforms/ios/src/MasonV8Module.h +583 -0
- package/platforms/ios/src/MasonV8Module.mm +1005 -0
- package/platforms/ios/src/{include → cpp/include}/mason_native.h +47 -20
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/module.modulemap +2 -2
- package/platforms/new_native_src/cpp/Caches.cpp +36 -0
- package/platforms/new_native_src/cpp/Caches.h +42 -0
- package/platforms/new_native_src/cpp/Common.h +34 -0
- package/platforms/new_native_src/cpp/ConcurrentMap.h +57 -0
- package/platforms/new_native_src/cpp/Helpers.cpp +101 -0
- package/platforms/new_native_src/cpp/Helpers.h +364 -0
- package/platforms/new_native_src/cpp/MasonImpl.cpp +68 -0
- package/platforms/new_native_src/cpp/MasonImpl.h +40 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +89 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +47 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +2181 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +420 -0
- package/platforms/{ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders → new_native_src/cpp/include}/mason_native.h +464 -168
- package/platforms/new_native_src/cpp/include/robin_hood.h +2544 -0
- package/pods/Headers/include/APIDesign.md +72 -0
- package/pods/Headers/include/DEPS +10 -0
- package/pods/Headers/include/DIR_METADATA +11 -0
- package/pods/Headers/include/OWNERS +23 -0
- package/pods/Headers/include/cppgc/DEPS +8 -0
- package/pods/Headers/include/cppgc/OWNERS +2 -0
- package/pods/Headers/include/cppgc/README.md +133 -0
- package/pods/Headers/include/cppgc/allocation.h +310 -0
- package/pods/Headers/include/cppgc/common.h +29 -0
- package/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/pods/Headers/include/cppgc/custom-space.h +97 -0
- package/pods/Headers/include/cppgc/default-platform.h +67 -0
- package/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/pods/Headers/include/cppgc/explicit-management.h +100 -0
- package/pods/Headers/include/cppgc/garbage-collected.h +106 -0
- package/pods/Headers/include/cppgc/heap-consistency.h +266 -0
- package/pods/Headers/include/cppgc/heap-state.h +82 -0
- package/pods/Headers/include/cppgc/heap-statistics.h +120 -0
- package/pods/Headers/include/cppgc/heap.h +206 -0
- package/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/pods/Headers/include/cppgc/internal/logging.h +50 -0
- package/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/pods/Headers/include/cppgc/liveness-broker.h +77 -0
- package/pods/Headers/include/cppgc/macros.h +26 -0
- package/pods/Headers/include/cppgc/member.h +291 -0
- package/pods/Headers/include/cppgc/name-provider.h +65 -0
- package/pods/Headers/include/cppgc/object-size-trait.h +58 -0
- package/pods/Headers/include/cppgc/persistent.h +370 -0
- package/pods/Headers/include/cppgc/platform.h +156 -0
- package/pods/Headers/include/cppgc/prefinalizer.h +75 -0
- package/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/pods/Headers/include/cppgc/source-location.h +92 -0
- package/pods/Headers/include/cppgc/testing.h +106 -0
- package/pods/Headers/include/cppgc/trace-trait.h +116 -0
- package/pods/Headers/include/cppgc/type-traits.h +240 -0
- package/pods/Headers/include/cppgc/visitor.h +379 -0
- package/pods/Headers/include/js_protocol-1.2.json +936 -0
- package/pods/Headers/include/js_protocol-1.3.json +1112 -0
- package/pods/Headers/include/js_protocol.pdl +1709 -0
- package/pods/Headers/include/libffi/arm64/ffi.h +524 -0
- package/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/pods/Headers/include/libffi.h +12 -0
- package/pods/Headers/include/libplatform/DEPS +9 -0
- package/pods/Headers/include/libplatform/libplatform-export.h +29 -0
- package/pods/Headers/include/libplatform/libplatform.h +106 -0
- package/pods/Headers/include/libplatform/v8-tracing.h +333 -0
- package/pods/Headers/include/v8-array-buffer.h +433 -0
- package/pods/Headers/include/v8-callbacks.h +397 -0
- package/pods/Headers/include/v8-container.h +129 -0
- package/pods/Headers/include/v8-context.h +407 -0
- package/pods/Headers/include/v8-cppgc.h +215 -0
- package/pods/Headers/include/v8-data.h +80 -0
- package/pods/Headers/include/v8-date.h +43 -0
- package/pods/Headers/include/v8-debug.h +168 -0
- package/pods/Headers/include/v8-embedder-heap.h +218 -0
- package/pods/Headers/include/v8-embedder-state-scope.h +51 -0
- package/pods/Headers/include/v8-exception.h +217 -0
- package/pods/Headers/include/v8-extension.h +62 -0
- package/pods/Headers/include/v8-external.h +37 -0
- package/pods/Headers/include/v8-fast-api-calls.h +939 -0
- package/pods/Headers/include/v8-forward.h +81 -0
- package/pods/Headers/include/v8-function-callback.h +475 -0
- package/pods/Headers/include/v8-function.h +125 -0
- package/pods/Headers/include/v8-initialization.h +315 -0
- package/pods/Headers/include/v8-inspector-protocol.h +13 -0
- package/pods/Headers/include/v8-inspector.h +376 -0
- package/pods/Headers/include/v8-internal.h +661 -0
- package/pods/Headers/include/v8-isolate.h +1709 -0
- package/pods/Headers/include/v8-json.h +47 -0
- package/pods/Headers/include/v8-local-handle.h +455 -0
- package/pods/Headers/include/v8-locker.h +149 -0
- package/pods/Headers/include/v8-maybe.h +137 -0
- package/pods/Headers/include/v8-memory-span.h +43 -0
- package/pods/Headers/include/v8-message.h +216 -0
- package/pods/Headers/include/v8-metrics.h +255 -0
- package/pods/Headers/include/v8-microtask-queue.h +152 -0
- package/pods/Headers/include/v8-microtask.h +28 -0
- package/pods/Headers/include/v8-object.h +775 -0
- package/pods/Headers/include/v8-persistent-handle.h +590 -0
- package/pods/Headers/include/v8-platform.h +1092 -0
- package/pods/Headers/include/v8-primitive-object.h +118 -0
- package/pods/Headers/include/v8-primitive.h +866 -0
- package/pods/Headers/include/v8-profiler.h +1198 -0
- package/pods/Headers/include/v8-promise.h +174 -0
- package/pods/Headers/include/v8-proxy.h +50 -0
- package/pods/Headers/include/v8-regexp.h +105 -0
- package/pods/Headers/include/v8-script.h +748 -0
- package/pods/Headers/include/v8-snapshot.h +196 -0
- package/pods/Headers/include/v8-statistics.h +217 -0
- package/pods/Headers/include/v8-template.h +1079 -0
- package/pods/Headers/include/v8-traced-handle.h +420 -0
- package/pods/Headers/include/v8-typed-array.h +282 -0
- package/pods/Headers/include/v8-unwinder-state.h +31 -0
- package/pods/Headers/include/v8-unwinder.h +132 -0
- package/pods/Headers/include/v8-util.h +658 -0
- package/pods/Headers/include/v8-value-serializer-version.h +24 -0
- package/pods/Headers/include/v8-value-serializer.h +279 -0
- package/pods/Headers/include/v8-value.h +526 -0
- package/pods/Headers/include/v8-version-string.h +38 -0
- package/pods/Headers/include/v8-version.h +20 -0
- package/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/pods/Headers/include/v8-wasm.h +257 -0
- package/pods/Headers/include/v8-weak-callback-info.h +86 -0
- package/pods/Headers/include/v8.h +88 -0
- package/pods/Headers/include/v8config.h +605 -0
- package/pods/Headers/inspector/InspectorServer.h +20 -0
- package/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/pods/Headers/inspector/base64.h +9 -0
- package/pods/Headers/inspector/src/base/address-region.h +95 -0
- package/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/pods/Headers/inspector/src/base/atomicops.h +332 -0
- package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/pods/Headers/inspector/src/base/base-export.h +31 -0
- package/pods/Headers/inspector/src/base/bits.h +343 -0
- package/pods/Headers/inspector/src/base/build_config.h +234 -0
- package/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/pods/Headers/inspector/src/base/export-template.h +163 -0
- package/pods/Headers/inspector/src/base/flags.h +130 -0
- package/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/pods/Headers/inspector/src/base/logging.h +417 -0
- package/pods/Headers/inspector/src/base/macros.h +423 -0
- package/pods/Headers/inspector/src/base/memory.h +89 -0
- package/pods/Headers/inspector/src/base/once.h +108 -0
- package/pods/Headers/inspector/src/base/optional.h +882 -0
- package/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/pods/Headers/inspector/src/base/platform/platform.h +476 -0
- package/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/pods/Headers/inspector/src/base/template-utils.h +113 -0
- package/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/pods/Headers/inspector/src/common/checks.h +38 -0
- package/pods/Headers/inspector/src/common/globals.h +1842 -0
- package/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/pods/Headers/inspector/src/debug/interface-types.h +175 -0
- package/pods/Headers/inspector/src/init/v8.h +52 -0
- package/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/pods/Headers/inspector/src/inspector/search-util.h +26 -0
- package/pods/Headers/inspector/src/inspector/string-16.h +180 -0
- package/pods/Headers/inspector/src/inspector/string-util.h +128 -0
- package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/pods/Headers/inspector/src/numbers/conversions.h +183 -0
- package/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/pods/Headers/inspector/src/utils/allocation.h +367 -0
- package/pods/Headers/inspector/src/utils/vector.h +324 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/pods/Headers/inspector/utils.h +32 -0
- package/pods/Headers/inspector/v8-inspector-platform.h +44 -0
- package/pods/Headers/jsi/decorator.h +762 -0
- package/pods/Headers/jsi/instrumentation.h +117 -0
- package/pods/Headers/jsi/jsi-inl.h +322 -0
- package/pods/Headers/jsi/jsi.h +1387 -0
- package/pods/Headers/jsi/jsilib.h +59 -0
- package/pods/Headers/jsi/threadsafe.h +79 -0
- package/pods/Headers/runtime/ArgConverter.h +61 -0
- package/pods/Headers/runtime/ArrayAdapter.h +13 -0
- package/pods/Headers/runtime/Caches.h +98 -0
- package/pods/Headers/runtime/ClassBuilder.h +61 -0
- package/pods/Headers/runtime/Common.h +9 -0
- package/pods/Headers/runtime/ConcurrentMap.h +55 -0
- package/pods/Headers/runtime/ConcurrentQueue.h +28 -0
- package/pods/Headers/runtime/Console.h +27 -0
- package/pods/Headers/runtime/Constants.h +15 -0
- package/pods/Headers/runtime/DataWrapper.h +671 -0
- package/pods/Headers/runtime/DictionaryAdapter.h +13 -0
- package/pods/Headers/runtime/ExtVector.h +21 -0
- package/pods/Headers/runtime/FFICall.h +105 -0
- package/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/pods/Headers/runtime/FunctionReference.h +18 -0
- package/pods/Headers/runtime/Helpers.h +84 -0
- package/pods/Headers/runtime/InlineFunctions.h +16 -0
- package/pods/Headers/runtime/Interop.h +202 -0
- package/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/pods/Headers/runtime/Metadata.h +981 -0
- package/pods/Headers/runtime/MetadataBuilder.h +72 -0
- package/pods/Headers/runtime/MetadataInlines.h +157 -0
- package/pods/Headers/runtime/ModuleInternal.h +59 -0
- package/pods/Headers/runtime/NSDataAdapter.h +13 -0
- package/pods/Headers/runtime/NativeScriptException.h +27 -0
- package/pods/Headers/runtime/ObjectManager.h +31 -0
- package/pods/Headers/runtime/OneByteStringResource.h +21 -0
- package/pods/Headers/runtime/Pointer.h +26 -0
- package/pods/Headers/runtime/PromiseProxy.h +15 -0
- package/pods/Headers/runtime/Reference.h +38 -0
- package/pods/Headers/runtime/Runtime.h +67 -0
- package/pods/Headers/runtime/RuntimeConfig.h +17 -0
- package/pods/Headers/runtime/SetTimeout.h +34 -0
- package/pods/Headers/runtime/SimpleAllocator.h +23 -0
- package/pods/Headers/runtime/StringHasher.h +315 -0
- package/pods/Headers/runtime/SymbolIterator.h +18 -0
- package/pods/Headers/runtime/SymbolLoader.h +27 -0
- package/pods/Headers/runtime/TNSDerivedClass.h +8 -0
- package/pods/Headers/runtime/TSHelpers.h +15 -0
- package/pods/Headers/runtime/Tasks.h +19 -0
- package/pods/Headers/runtime/UnmanagedType.h +21 -0
- package/pods/Headers/runtime/WeakRef.h +15 -0
- package/pods/Headers/runtime/Worker.h +26 -0
- package/pods/Headers/runtime/robin_hood.h +2184 -0
- package/pods/Headers/v8runtime/HostProxy.h +71 -0
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +70 -0
- package/pods/Headers/v8runtime/V8PointerValue.h +44 -0
- package/pods/Headers/v8runtime/V8Runtime.h +215 -0
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
- package/pods/NativeScript.podspec +68 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
// This file is generated by TypeBuilder_h.template.
|
|
2
|
+
|
|
3
|
+
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
|
4
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
5
|
+
// found in the LICENSE file.
|
|
6
|
+
|
|
7
|
+
#ifndef v8_inspector_protocol_Security_h
|
|
8
|
+
#define v8_inspector_protocol_Security_h
|
|
9
|
+
|
|
10
|
+
#include "src/inspector/protocol/Protocol.h"
|
|
11
|
+
// For each imported domain we generate a ValueConversions struct instead of a full domain definition
|
|
12
|
+
// and include Domain::API version from there.
|
|
13
|
+
|
|
14
|
+
namespace v8_inspector {
|
|
15
|
+
namespace protocol {
|
|
16
|
+
namespace Security {
|
|
17
|
+
using CertificateId = int;
|
|
18
|
+
using MixedContentType = String;
|
|
19
|
+
using SecurityState = String;
|
|
20
|
+
class CertificateSecurityState;
|
|
21
|
+
using SafetyTipStatus = String;
|
|
22
|
+
class SafetyTipInfo;
|
|
23
|
+
class VisibleSecurityState;
|
|
24
|
+
class SecurityStateExplanation;
|
|
25
|
+
class InsecureContentStatus;
|
|
26
|
+
|
|
27
|
+
// ------------- Forward and enum declarations.
|
|
28
|
+
|
|
29
|
+
namespace MixedContentTypeEnum {
|
|
30
|
+
extern const char Blockable[];
|
|
31
|
+
extern const char OptionallyBlockable[];
|
|
32
|
+
extern const char None[];
|
|
33
|
+
} // namespace MixedContentTypeEnum
|
|
34
|
+
|
|
35
|
+
namespace SecurityStateEnum {
|
|
36
|
+
extern const char Unknown[];
|
|
37
|
+
extern const char Neutral[];
|
|
38
|
+
extern const char Insecure[];
|
|
39
|
+
extern const char Secure[];
|
|
40
|
+
extern const char Info[];
|
|
41
|
+
extern const char InsecureBroken[];
|
|
42
|
+
} // namespace SecurityStateEnum
|
|
43
|
+
|
|
44
|
+
namespace SafetyTipStatusEnum {
|
|
45
|
+
extern const char BadReputation[];
|
|
46
|
+
extern const char Lookalike[];
|
|
47
|
+
} // namespace SafetyTipStatusEnum
|
|
48
|
+
|
|
49
|
+
// ------------- Type and builder declarations.
|
|
50
|
+
|
|
51
|
+
class CertificateSecurityState : public ::v8_crdtp::ProtocolObject<CertificateSecurityState> {
|
|
52
|
+
public:
|
|
53
|
+
~CertificateSecurityState() override { }
|
|
54
|
+
|
|
55
|
+
String getProtocol() { return m_protocol; }
|
|
56
|
+
void setProtocol(const String& value) { m_protocol = value; }
|
|
57
|
+
|
|
58
|
+
String getKeyExchange() { return m_keyExchange; }
|
|
59
|
+
void setKeyExchange(const String& value) { m_keyExchange = value; }
|
|
60
|
+
|
|
61
|
+
bool hasKeyExchangeGroup() { return m_keyExchangeGroup.isJust(); }
|
|
62
|
+
String getKeyExchangeGroup(const String& defaultValue) { return m_keyExchangeGroup.isJust() ? m_keyExchangeGroup.fromJust() : defaultValue; }
|
|
63
|
+
void setKeyExchangeGroup(const String& value) { m_keyExchangeGroup = value; }
|
|
64
|
+
|
|
65
|
+
String getCipher() { return m_cipher; }
|
|
66
|
+
void setCipher(const String& value) { m_cipher = value; }
|
|
67
|
+
|
|
68
|
+
bool hasMac() { return m_mac.isJust(); }
|
|
69
|
+
String getMac(const String& defaultValue) { return m_mac.isJust() ? m_mac.fromJust() : defaultValue; }
|
|
70
|
+
void setMac(const String& value) { m_mac = value; }
|
|
71
|
+
|
|
72
|
+
protocol::Array<String>* getCertificate() { return m_certificate.get(); }
|
|
73
|
+
void setCertificate(std::unique_ptr<protocol::Array<String>> value) { m_certificate = std::move(value); }
|
|
74
|
+
|
|
75
|
+
String getSubjectName() { return m_subjectName; }
|
|
76
|
+
void setSubjectName(const String& value) { m_subjectName = value; }
|
|
77
|
+
|
|
78
|
+
String getIssuer() { return m_issuer; }
|
|
79
|
+
void setIssuer(const String& value) { m_issuer = value; }
|
|
80
|
+
|
|
81
|
+
double getValidFrom() { return m_validFrom; }
|
|
82
|
+
void setValidFrom(double value) { m_validFrom = value; }
|
|
83
|
+
|
|
84
|
+
double getValidTo() { return m_validTo; }
|
|
85
|
+
void setValidTo(double value) { m_validTo = value; }
|
|
86
|
+
|
|
87
|
+
bool hasCertificateNetworkError() { return m_certificateNetworkError.isJust(); }
|
|
88
|
+
String getCertificateNetworkError(const String& defaultValue) { return m_certificateNetworkError.isJust() ? m_certificateNetworkError.fromJust() : defaultValue; }
|
|
89
|
+
void setCertificateNetworkError(const String& value) { m_certificateNetworkError = value; }
|
|
90
|
+
|
|
91
|
+
bool getCertificateHasWeakSignature() { return m_certificateHasWeakSignature; }
|
|
92
|
+
void setCertificateHasWeakSignature(bool value) { m_certificateHasWeakSignature = value; }
|
|
93
|
+
|
|
94
|
+
bool getCertificateHasSha1Signature() { return m_certificateHasSha1Signature; }
|
|
95
|
+
void setCertificateHasSha1Signature(bool value) { m_certificateHasSha1Signature = value; }
|
|
96
|
+
|
|
97
|
+
bool getModernSSL() { return m_modernSSL; }
|
|
98
|
+
void setModernSSL(bool value) { m_modernSSL = value; }
|
|
99
|
+
|
|
100
|
+
bool getObsoleteSslProtocol() { return m_obsoleteSslProtocol; }
|
|
101
|
+
void setObsoleteSslProtocol(bool value) { m_obsoleteSslProtocol = value; }
|
|
102
|
+
|
|
103
|
+
bool getObsoleteSslKeyExchange() { return m_obsoleteSslKeyExchange; }
|
|
104
|
+
void setObsoleteSslKeyExchange(bool value) { m_obsoleteSslKeyExchange = value; }
|
|
105
|
+
|
|
106
|
+
bool getObsoleteSslCipher() { return m_obsoleteSslCipher; }
|
|
107
|
+
void setObsoleteSslCipher(bool value) { m_obsoleteSslCipher = value; }
|
|
108
|
+
|
|
109
|
+
bool getObsoleteSslSignature() { return m_obsoleteSslSignature; }
|
|
110
|
+
void setObsoleteSslSignature(bool value) { m_obsoleteSslSignature = value; }
|
|
111
|
+
|
|
112
|
+
template<int STATE>
|
|
113
|
+
class CertificateSecurityStateBuilder {
|
|
114
|
+
public:
|
|
115
|
+
enum {
|
|
116
|
+
NoFieldsSet = 0,
|
|
117
|
+
ProtocolSet = 1 << 1,
|
|
118
|
+
KeyExchangeSet = 1 << 2,
|
|
119
|
+
CipherSet = 1 << 3,
|
|
120
|
+
CertificateSet = 1 << 4,
|
|
121
|
+
SubjectNameSet = 1 << 5,
|
|
122
|
+
IssuerSet = 1 << 6,
|
|
123
|
+
ValidFromSet = 1 << 7,
|
|
124
|
+
ValidToSet = 1 << 8,
|
|
125
|
+
CertificateHasWeakSignatureSet = 1 << 9,
|
|
126
|
+
CertificateHasSha1SignatureSet = 1 << 10,
|
|
127
|
+
ModernSSLSet = 1 << 11,
|
|
128
|
+
ObsoleteSslProtocolSet = 1 << 12,
|
|
129
|
+
ObsoleteSslKeyExchangeSet = 1 << 13,
|
|
130
|
+
ObsoleteSslCipherSet = 1 << 14,
|
|
131
|
+
ObsoleteSslSignatureSet = 1 << 15,
|
|
132
|
+
AllFieldsSet = (ProtocolSet | KeyExchangeSet | CipherSet | CertificateSet | SubjectNameSet | IssuerSet | ValidFromSet | ValidToSet | CertificateHasWeakSignatureSet | CertificateHasSha1SignatureSet | ModernSSLSet | ObsoleteSslProtocolSet | ObsoleteSslKeyExchangeSet | ObsoleteSslCipherSet | ObsoleteSslSignatureSet | 0)};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
CertificateSecurityStateBuilder<STATE | ProtocolSet>& setProtocol(const String& value)
|
|
136
|
+
{
|
|
137
|
+
static_assert(!(STATE & ProtocolSet), "property protocol should not be set yet");
|
|
138
|
+
m_result->setProtocol(value);
|
|
139
|
+
return castState<ProtocolSet>();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
CertificateSecurityStateBuilder<STATE | KeyExchangeSet>& setKeyExchange(const String& value)
|
|
143
|
+
{
|
|
144
|
+
static_assert(!(STATE & KeyExchangeSet), "property keyExchange should not be set yet");
|
|
145
|
+
m_result->setKeyExchange(value);
|
|
146
|
+
return castState<KeyExchangeSet>();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
CertificateSecurityStateBuilder<STATE>& setKeyExchangeGroup(const String& value)
|
|
150
|
+
{
|
|
151
|
+
m_result->setKeyExchangeGroup(value);
|
|
152
|
+
return *this;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
CertificateSecurityStateBuilder<STATE | CipherSet>& setCipher(const String& value)
|
|
156
|
+
{
|
|
157
|
+
static_assert(!(STATE & CipherSet), "property cipher should not be set yet");
|
|
158
|
+
m_result->setCipher(value);
|
|
159
|
+
return castState<CipherSet>();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
CertificateSecurityStateBuilder<STATE>& setMac(const String& value)
|
|
163
|
+
{
|
|
164
|
+
m_result->setMac(value);
|
|
165
|
+
return *this;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
CertificateSecurityStateBuilder<STATE | CertificateSet>& setCertificate(std::unique_ptr<protocol::Array<String>> value)
|
|
169
|
+
{
|
|
170
|
+
static_assert(!(STATE & CertificateSet), "property certificate should not be set yet");
|
|
171
|
+
m_result->setCertificate(std::move(value));
|
|
172
|
+
return castState<CertificateSet>();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
CertificateSecurityStateBuilder<STATE | SubjectNameSet>& setSubjectName(const String& value)
|
|
176
|
+
{
|
|
177
|
+
static_assert(!(STATE & SubjectNameSet), "property subjectName should not be set yet");
|
|
178
|
+
m_result->setSubjectName(value);
|
|
179
|
+
return castState<SubjectNameSet>();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
CertificateSecurityStateBuilder<STATE | IssuerSet>& setIssuer(const String& value)
|
|
183
|
+
{
|
|
184
|
+
static_assert(!(STATE & IssuerSet), "property issuer should not be set yet");
|
|
185
|
+
m_result->setIssuer(value);
|
|
186
|
+
return castState<IssuerSet>();
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
CertificateSecurityStateBuilder<STATE | ValidFromSet>& setValidFrom(double value)
|
|
190
|
+
{
|
|
191
|
+
static_assert(!(STATE & ValidFromSet), "property validFrom should not be set yet");
|
|
192
|
+
m_result->setValidFrom(value);
|
|
193
|
+
return castState<ValidFromSet>();
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
CertificateSecurityStateBuilder<STATE | ValidToSet>& setValidTo(double value)
|
|
197
|
+
{
|
|
198
|
+
static_assert(!(STATE & ValidToSet), "property validTo should not be set yet");
|
|
199
|
+
m_result->setValidTo(value);
|
|
200
|
+
return castState<ValidToSet>();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
CertificateSecurityStateBuilder<STATE>& setCertificateNetworkError(const String& value)
|
|
204
|
+
{
|
|
205
|
+
m_result->setCertificateNetworkError(value);
|
|
206
|
+
return *this;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
CertificateSecurityStateBuilder<STATE | CertificateHasWeakSignatureSet>& setCertificateHasWeakSignature(bool value)
|
|
210
|
+
{
|
|
211
|
+
static_assert(!(STATE & CertificateHasWeakSignatureSet), "property certificateHasWeakSignature should not be set yet");
|
|
212
|
+
m_result->setCertificateHasWeakSignature(value);
|
|
213
|
+
return castState<CertificateHasWeakSignatureSet>();
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
CertificateSecurityStateBuilder<STATE | CertificateHasSha1SignatureSet>& setCertificateHasSha1Signature(bool value)
|
|
217
|
+
{
|
|
218
|
+
static_assert(!(STATE & CertificateHasSha1SignatureSet), "property certificateHasSha1Signature should not be set yet");
|
|
219
|
+
m_result->setCertificateHasSha1Signature(value);
|
|
220
|
+
return castState<CertificateHasSha1SignatureSet>();
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
CertificateSecurityStateBuilder<STATE | ModernSSLSet>& setModernSSL(bool value)
|
|
224
|
+
{
|
|
225
|
+
static_assert(!(STATE & ModernSSLSet), "property modernSSL should not be set yet");
|
|
226
|
+
m_result->setModernSSL(value);
|
|
227
|
+
return castState<ModernSSLSet>();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
CertificateSecurityStateBuilder<STATE | ObsoleteSslProtocolSet>& setObsoleteSslProtocol(bool value)
|
|
231
|
+
{
|
|
232
|
+
static_assert(!(STATE & ObsoleteSslProtocolSet), "property obsoleteSslProtocol should not be set yet");
|
|
233
|
+
m_result->setObsoleteSslProtocol(value);
|
|
234
|
+
return castState<ObsoleteSslProtocolSet>();
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
CertificateSecurityStateBuilder<STATE | ObsoleteSslKeyExchangeSet>& setObsoleteSslKeyExchange(bool value)
|
|
238
|
+
{
|
|
239
|
+
static_assert(!(STATE & ObsoleteSslKeyExchangeSet), "property obsoleteSslKeyExchange should not be set yet");
|
|
240
|
+
m_result->setObsoleteSslKeyExchange(value);
|
|
241
|
+
return castState<ObsoleteSslKeyExchangeSet>();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
CertificateSecurityStateBuilder<STATE | ObsoleteSslCipherSet>& setObsoleteSslCipher(bool value)
|
|
245
|
+
{
|
|
246
|
+
static_assert(!(STATE & ObsoleteSslCipherSet), "property obsoleteSslCipher should not be set yet");
|
|
247
|
+
m_result->setObsoleteSslCipher(value);
|
|
248
|
+
return castState<ObsoleteSslCipherSet>();
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
CertificateSecurityStateBuilder<STATE | ObsoleteSslSignatureSet>& setObsoleteSslSignature(bool value)
|
|
252
|
+
{
|
|
253
|
+
static_assert(!(STATE & ObsoleteSslSignatureSet), "property obsoleteSslSignature should not be set yet");
|
|
254
|
+
m_result->setObsoleteSslSignature(value);
|
|
255
|
+
return castState<ObsoleteSslSignatureSet>();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
std::unique_ptr<CertificateSecurityState> build()
|
|
259
|
+
{
|
|
260
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
261
|
+
return std::move(m_result);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
private:
|
|
265
|
+
friend class CertificateSecurityState;
|
|
266
|
+
CertificateSecurityStateBuilder() : m_result(new CertificateSecurityState()) { }
|
|
267
|
+
|
|
268
|
+
template<int STEP> CertificateSecurityStateBuilder<STATE | STEP>& castState()
|
|
269
|
+
{
|
|
270
|
+
return *reinterpret_cast<CertificateSecurityStateBuilder<STATE | STEP>*>(this);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
std::unique_ptr<protocol::Security::CertificateSecurityState> m_result;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
static CertificateSecurityStateBuilder<0> create()
|
|
277
|
+
{
|
|
278
|
+
return CertificateSecurityStateBuilder<0>();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
private:
|
|
282
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
283
|
+
|
|
284
|
+
CertificateSecurityState()
|
|
285
|
+
{
|
|
286
|
+
m_validFrom = 0;
|
|
287
|
+
m_validTo = 0;
|
|
288
|
+
m_certificateHasWeakSignature = false;
|
|
289
|
+
m_certificateHasSha1Signature = false;
|
|
290
|
+
m_modernSSL = false;
|
|
291
|
+
m_obsoleteSslProtocol = false;
|
|
292
|
+
m_obsoleteSslKeyExchange = false;
|
|
293
|
+
m_obsoleteSslCipher = false;
|
|
294
|
+
m_obsoleteSslSignature = false;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
String m_protocol;
|
|
298
|
+
String m_keyExchange;
|
|
299
|
+
Maybe<String> m_keyExchangeGroup;
|
|
300
|
+
String m_cipher;
|
|
301
|
+
Maybe<String> m_mac;
|
|
302
|
+
std::unique_ptr<protocol::Array<String>> m_certificate;
|
|
303
|
+
String m_subjectName;
|
|
304
|
+
String m_issuer;
|
|
305
|
+
double m_validFrom;
|
|
306
|
+
double m_validTo;
|
|
307
|
+
Maybe<String> m_certificateNetworkError;
|
|
308
|
+
bool m_certificateHasWeakSignature;
|
|
309
|
+
bool m_certificateHasSha1Signature;
|
|
310
|
+
bool m_modernSSL;
|
|
311
|
+
bool m_obsoleteSslProtocol;
|
|
312
|
+
bool m_obsoleteSslKeyExchange;
|
|
313
|
+
bool m_obsoleteSslCipher;
|
|
314
|
+
bool m_obsoleteSslSignature;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class SafetyTipInfo : public ::v8_crdtp::ProtocolObject<SafetyTipInfo> {
|
|
319
|
+
public:
|
|
320
|
+
~SafetyTipInfo() override { }
|
|
321
|
+
|
|
322
|
+
String getSafetyTipStatus() { return m_safetyTipStatus; }
|
|
323
|
+
void setSafetyTipStatus(const String& value) { m_safetyTipStatus = value; }
|
|
324
|
+
|
|
325
|
+
bool hasSafeUrl() { return m_safeUrl.isJust(); }
|
|
326
|
+
String getSafeUrl(const String& defaultValue) { return m_safeUrl.isJust() ? m_safeUrl.fromJust() : defaultValue; }
|
|
327
|
+
void setSafeUrl(const String& value) { m_safeUrl = value; }
|
|
328
|
+
|
|
329
|
+
template<int STATE>
|
|
330
|
+
class SafetyTipInfoBuilder {
|
|
331
|
+
public:
|
|
332
|
+
enum {
|
|
333
|
+
NoFieldsSet = 0,
|
|
334
|
+
SafetyTipStatusSet = 1 << 1,
|
|
335
|
+
AllFieldsSet = (SafetyTipStatusSet | 0)};
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
SafetyTipInfoBuilder<STATE | SafetyTipStatusSet>& setSafetyTipStatus(const String& value)
|
|
339
|
+
{
|
|
340
|
+
static_assert(!(STATE & SafetyTipStatusSet), "property safetyTipStatus should not be set yet");
|
|
341
|
+
m_result->setSafetyTipStatus(value);
|
|
342
|
+
return castState<SafetyTipStatusSet>();
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
SafetyTipInfoBuilder<STATE>& setSafeUrl(const String& value)
|
|
346
|
+
{
|
|
347
|
+
m_result->setSafeUrl(value);
|
|
348
|
+
return *this;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
std::unique_ptr<SafetyTipInfo> build()
|
|
352
|
+
{
|
|
353
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
354
|
+
return std::move(m_result);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
private:
|
|
358
|
+
friend class SafetyTipInfo;
|
|
359
|
+
SafetyTipInfoBuilder() : m_result(new SafetyTipInfo()) { }
|
|
360
|
+
|
|
361
|
+
template<int STEP> SafetyTipInfoBuilder<STATE | STEP>& castState()
|
|
362
|
+
{
|
|
363
|
+
return *reinterpret_cast<SafetyTipInfoBuilder<STATE | STEP>*>(this);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
std::unique_ptr<protocol::Security::SafetyTipInfo> m_result;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
static SafetyTipInfoBuilder<0> create()
|
|
370
|
+
{
|
|
371
|
+
return SafetyTipInfoBuilder<0>();
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
private:
|
|
375
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
376
|
+
|
|
377
|
+
SafetyTipInfo()
|
|
378
|
+
{
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
String m_safetyTipStatus;
|
|
382
|
+
Maybe<String> m_safeUrl;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
class VisibleSecurityState : public ::v8_crdtp::ProtocolObject<VisibleSecurityState> {
|
|
387
|
+
public:
|
|
388
|
+
~VisibleSecurityState() override { }
|
|
389
|
+
|
|
390
|
+
String getSecurityState() { return m_securityState; }
|
|
391
|
+
void setSecurityState(const String& value) { m_securityState = value; }
|
|
392
|
+
|
|
393
|
+
bool hasCertificateSecurityState() { return m_certificateSecurityState.isJust(); }
|
|
394
|
+
protocol::Security::CertificateSecurityState* getCertificateSecurityState(protocol::Security::CertificateSecurityState* defaultValue) { return m_certificateSecurityState.isJust() ? m_certificateSecurityState.fromJust() : defaultValue; }
|
|
395
|
+
void setCertificateSecurityState(std::unique_ptr<protocol::Security::CertificateSecurityState> value) { m_certificateSecurityState = std::move(value); }
|
|
396
|
+
|
|
397
|
+
bool hasSafetyTipInfo() { return m_safetyTipInfo.isJust(); }
|
|
398
|
+
protocol::Security::SafetyTipInfo* getSafetyTipInfo(protocol::Security::SafetyTipInfo* defaultValue) { return m_safetyTipInfo.isJust() ? m_safetyTipInfo.fromJust() : defaultValue; }
|
|
399
|
+
void setSafetyTipInfo(std::unique_ptr<protocol::Security::SafetyTipInfo> value) { m_safetyTipInfo = std::move(value); }
|
|
400
|
+
|
|
401
|
+
protocol::Array<String>* getSecurityStateIssueIds() { return m_securityStateIssueIds.get(); }
|
|
402
|
+
void setSecurityStateIssueIds(std::unique_ptr<protocol::Array<String>> value) { m_securityStateIssueIds = std::move(value); }
|
|
403
|
+
|
|
404
|
+
template<int STATE>
|
|
405
|
+
class VisibleSecurityStateBuilder {
|
|
406
|
+
public:
|
|
407
|
+
enum {
|
|
408
|
+
NoFieldsSet = 0,
|
|
409
|
+
SecurityStateSet = 1 << 1,
|
|
410
|
+
SecurityStateIssueIdsSet = 1 << 2,
|
|
411
|
+
AllFieldsSet = (SecurityStateSet | SecurityStateIssueIdsSet | 0)};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
VisibleSecurityStateBuilder<STATE | SecurityStateSet>& setSecurityState(const String& value)
|
|
415
|
+
{
|
|
416
|
+
static_assert(!(STATE & SecurityStateSet), "property securityState should not be set yet");
|
|
417
|
+
m_result->setSecurityState(value);
|
|
418
|
+
return castState<SecurityStateSet>();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
VisibleSecurityStateBuilder<STATE>& setCertificateSecurityState(std::unique_ptr<protocol::Security::CertificateSecurityState> value)
|
|
422
|
+
{
|
|
423
|
+
m_result->setCertificateSecurityState(std::move(value));
|
|
424
|
+
return *this;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
VisibleSecurityStateBuilder<STATE>& setSafetyTipInfo(std::unique_ptr<protocol::Security::SafetyTipInfo> value)
|
|
428
|
+
{
|
|
429
|
+
m_result->setSafetyTipInfo(std::move(value));
|
|
430
|
+
return *this;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
VisibleSecurityStateBuilder<STATE | SecurityStateIssueIdsSet>& setSecurityStateIssueIds(std::unique_ptr<protocol::Array<String>> value)
|
|
434
|
+
{
|
|
435
|
+
static_assert(!(STATE & SecurityStateIssueIdsSet), "property securityStateIssueIds should not be set yet");
|
|
436
|
+
m_result->setSecurityStateIssueIds(std::move(value));
|
|
437
|
+
return castState<SecurityStateIssueIdsSet>();
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
std::unique_ptr<VisibleSecurityState> build()
|
|
441
|
+
{
|
|
442
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
443
|
+
return std::move(m_result);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
private:
|
|
447
|
+
friend class VisibleSecurityState;
|
|
448
|
+
VisibleSecurityStateBuilder() : m_result(new VisibleSecurityState()) { }
|
|
449
|
+
|
|
450
|
+
template<int STEP> VisibleSecurityStateBuilder<STATE | STEP>& castState()
|
|
451
|
+
{
|
|
452
|
+
return *reinterpret_cast<VisibleSecurityStateBuilder<STATE | STEP>*>(this);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
std::unique_ptr<protocol::Security::VisibleSecurityState> m_result;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
static VisibleSecurityStateBuilder<0> create()
|
|
459
|
+
{
|
|
460
|
+
return VisibleSecurityStateBuilder<0>();
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
private:
|
|
464
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
465
|
+
|
|
466
|
+
VisibleSecurityState()
|
|
467
|
+
{
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
String m_securityState;
|
|
471
|
+
Maybe<protocol::Security::CertificateSecurityState> m_certificateSecurityState;
|
|
472
|
+
Maybe<protocol::Security::SafetyTipInfo> m_safetyTipInfo;
|
|
473
|
+
std::unique_ptr<protocol::Array<String>> m_securityStateIssueIds;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
class SecurityStateExplanation : public ::v8_crdtp::ProtocolObject<SecurityStateExplanation> {
|
|
478
|
+
public:
|
|
479
|
+
~SecurityStateExplanation() override { }
|
|
480
|
+
|
|
481
|
+
String getSecurityState() { return m_securityState; }
|
|
482
|
+
void setSecurityState(const String& value) { m_securityState = value; }
|
|
483
|
+
|
|
484
|
+
String getTitle() { return m_title; }
|
|
485
|
+
void setTitle(const String& value) { m_title = value; }
|
|
486
|
+
|
|
487
|
+
String getSummary() { return m_summary; }
|
|
488
|
+
void setSummary(const String& value) { m_summary = value; }
|
|
489
|
+
|
|
490
|
+
String getDescription() { return m_description; }
|
|
491
|
+
void setDescription(const String& value) { m_description = value; }
|
|
492
|
+
|
|
493
|
+
String getMixedContentType() { return m_mixedContentType; }
|
|
494
|
+
void setMixedContentType(const String& value) { m_mixedContentType = value; }
|
|
495
|
+
|
|
496
|
+
protocol::Array<String>* getCertificate() { return m_certificate.get(); }
|
|
497
|
+
void setCertificate(std::unique_ptr<protocol::Array<String>> value) { m_certificate = std::move(value); }
|
|
498
|
+
|
|
499
|
+
bool hasRecommendations() { return m_recommendations.isJust(); }
|
|
500
|
+
protocol::Array<String>* getRecommendations(protocol::Array<String>* defaultValue) { return m_recommendations.isJust() ? m_recommendations.fromJust() : defaultValue; }
|
|
501
|
+
void setRecommendations(std::unique_ptr<protocol::Array<String>> value) { m_recommendations = std::move(value); }
|
|
502
|
+
|
|
503
|
+
template<int STATE>
|
|
504
|
+
class SecurityStateExplanationBuilder {
|
|
505
|
+
public:
|
|
506
|
+
enum {
|
|
507
|
+
NoFieldsSet = 0,
|
|
508
|
+
SecurityStateSet = 1 << 1,
|
|
509
|
+
TitleSet = 1 << 2,
|
|
510
|
+
SummarySet = 1 << 3,
|
|
511
|
+
DescriptionSet = 1 << 4,
|
|
512
|
+
MixedContentTypeSet = 1 << 5,
|
|
513
|
+
CertificateSet = 1 << 6,
|
|
514
|
+
AllFieldsSet = (SecurityStateSet | TitleSet | SummarySet | DescriptionSet | MixedContentTypeSet | CertificateSet | 0)};
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
SecurityStateExplanationBuilder<STATE | SecurityStateSet>& setSecurityState(const String& value)
|
|
518
|
+
{
|
|
519
|
+
static_assert(!(STATE & SecurityStateSet), "property securityState should not be set yet");
|
|
520
|
+
m_result->setSecurityState(value);
|
|
521
|
+
return castState<SecurityStateSet>();
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
SecurityStateExplanationBuilder<STATE | TitleSet>& setTitle(const String& value)
|
|
525
|
+
{
|
|
526
|
+
static_assert(!(STATE & TitleSet), "property title should not be set yet");
|
|
527
|
+
m_result->setTitle(value);
|
|
528
|
+
return castState<TitleSet>();
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
SecurityStateExplanationBuilder<STATE | SummarySet>& setSummary(const String& value)
|
|
532
|
+
{
|
|
533
|
+
static_assert(!(STATE & SummarySet), "property summary should not be set yet");
|
|
534
|
+
m_result->setSummary(value);
|
|
535
|
+
return castState<SummarySet>();
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
SecurityStateExplanationBuilder<STATE | DescriptionSet>& setDescription(const String& value)
|
|
539
|
+
{
|
|
540
|
+
static_assert(!(STATE & DescriptionSet), "property description should not be set yet");
|
|
541
|
+
m_result->setDescription(value);
|
|
542
|
+
return castState<DescriptionSet>();
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
SecurityStateExplanationBuilder<STATE | MixedContentTypeSet>& setMixedContentType(const String& value)
|
|
546
|
+
{
|
|
547
|
+
static_assert(!(STATE & MixedContentTypeSet), "property mixedContentType should not be set yet");
|
|
548
|
+
m_result->setMixedContentType(value);
|
|
549
|
+
return castState<MixedContentTypeSet>();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
SecurityStateExplanationBuilder<STATE | CertificateSet>& setCertificate(std::unique_ptr<protocol::Array<String>> value)
|
|
553
|
+
{
|
|
554
|
+
static_assert(!(STATE & CertificateSet), "property certificate should not be set yet");
|
|
555
|
+
m_result->setCertificate(std::move(value));
|
|
556
|
+
return castState<CertificateSet>();
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
SecurityStateExplanationBuilder<STATE>& setRecommendations(std::unique_ptr<protocol::Array<String>> value)
|
|
560
|
+
{
|
|
561
|
+
m_result->setRecommendations(std::move(value));
|
|
562
|
+
return *this;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
std::unique_ptr<SecurityStateExplanation> build()
|
|
566
|
+
{
|
|
567
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
568
|
+
return std::move(m_result);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
private:
|
|
572
|
+
friend class SecurityStateExplanation;
|
|
573
|
+
SecurityStateExplanationBuilder() : m_result(new SecurityStateExplanation()) { }
|
|
574
|
+
|
|
575
|
+
template<int STEP> SecurityStateExplanationBuilder<STATE | STEP>& castState()
|
|
576
|
+
{
|
|
577
|
+
return *reinterpret_cast<SecurityStateExplanationBuilder<STATE | STEP>*>(this);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
std::unique_ptr<protocol::Security::SecurityStateExplanation> m_result;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
static SecurityStateExplanationBuilder<0> create()
|
|
584
|
+
{
|
|
585
|
+
return SecurityStateExplanationBuilder<0>();
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
private:
|
|
589
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
590
|
+
|
|
591
|
+
SecurityStateExplanation()
|
|
592
|
+
{
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
String m_securityState;
|
|
596
|
+
String m_title;
|
|
597
|
+
String m_summary;
|
|
598
|
+
String m_description;
|
|
599
|
+
String m_mixedContentType;
|
|
600
|
+
std::unique_ptr<protocol::Array<String>> m_certificate;
|
|
601
|
+
Maybe<protocol::Array<String>> m_recommendations;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
class InsecureContentStatus : public ::v8_crdtp::ProtocolObject<InsecureContentStatus> {
|
|
606
|
+
public:
|
|
607
|
+
~InsecureContentStatus() override { }
|
|
608
|
+
|
|
609
|
+
bool getRanMixedContent() { return m_ranMixedContent; }
|
|
610
|
+
void setRanMixedContent(bool value) { m_ranMixedContent = value; }
|
|
611
|
+
|
|
612
|
+
bool getDisplayedMixedContent() { return m_displayedMixedContent; }
|
|
613
|
+
void setDisplayedMixedContent(bool value) { m_displayedMixedContent = value; }
|
|
614
|
+
|
|
615
|
+
bool getContainedMixedForm() { return m_containedMixedForm; }
|
|
616
|
+
void setContainedMixedForm(bool value) { m_containedMixedForm = value; }
|
|
617
|
+
|
|
618
|
+
bool getRanContentWithCertErrors() { return m_ranContentWithCertErrors; }
|
|
619
|
+
void setRanContentWithCertErrors(bool value) { m_ranContentWithCertErrors = value; }
|
|
620
|
+
|
|
621
|
+
bool getDisplayedContentWithCertErrors() { return m_displayedContentWithCertErrors; }
|
|
622
|
+
void setDisplayedContentWithCertErrors(bool value) { m_displayedContentWithCertErrors = value; }
|
|
623
|
+
|
|
624
|
+
String getRanInsecureContentStyle() { return m_ranInsecureContentStyle; }
|
|
625
|
+
void setRanInsecureContentStyle(const String& value) { m_ranInsecureContentStyle = value; }
|
|
626
|
+
|
|
627
|
+
String getDisplayedInsecureContentStyle() { return m_displayedInsecureContentStyle; }
|
|
628
|
+
void setDisplayedInsecureContentStyle(const String& value) { m_displayedInsecureContentStyle = value; }
|
|
629
|
+
|
|
630
|
+
template<int STATE>
|
|
631
|
+
class InsecureContentStatusBuilder {
|
|
632
|
+
public:
|
|
633
|
+
enum {
|
|
634
|
+
NoFieldsSet = 0,
|
|
635
|
+
RanMixedContentSet = 1 << 1,
|
|
636
|
+
DisplayedMixedContentSet = 1 << 2,
|
|
637
|
+
ContainedMixedFormSet = 1 << 3,
|
|
638
|
+
RanContentWithCertErrorsSet = 1 << 4,
|
|
639
|
+
DisplayedContentWithCertErrorsSet = 1 << 5,
|
|
640
|
+
RanInsecureContentStyleSet = 1 << 6,
|
|
641
|
+
DisplayedInsecureContentStyleSet = 1 << 7,
|
|
642
|
+
AllFieldsSet = (RanMixedContentSet | DisplayedMixedContentSet | ContainedMixedFormSet | RanContentWithCertErrorsSet | DisplayedContentWithCertErrorsSet | RanInsecureContentStyleSet | DisplayedInsecureContentStyleSet | 0)};
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
InsecureContentStatusBuilder<STATE | RanMixedContentSet>& setRanMixedContent(bool value)
|
|
646
|
+
{
|
|
647
|
+
static_assert(!(STATE & RanMixedContentSet), "property ranMixedContent should not be set yet");
|
|
648
|
+
m_result->setRanMixedContent(value);
|
|
649
|
+
return castState<RanMixedContentSet>();
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
InsecureContentStatusBuilder<STATE | DisplayedMixedContentSet>& setDisplayedMixedContent(bool value)
|
|
653
|
+
{
|
|
654
|
+
static_assert(!(STATE & DisplayedMixedContentSet), "property displayedMixedContent should not be set yet");
|
|
655
|
+
m_result->setDisplayedMixedContent(value);
|
|
656
|
+
return castState<DisplayedMixedContentSet>();
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
InsecureContentStatusBuilder<STATE | ContainedMixedFormSet>& setContainedMixedForm(bool value)
|
|
660
|
+
{
|
|
661
|
+
static_assert(!(STATE & ContainedMixedFormSet), "property containedMixedForm should not be set yet");
|
|
662
|
+
m_result->setContainedMixedForm(value);
|
|
663
|
+
return castState<ContainedMixedFormSet>();
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
InsecureContentStatusBuilder<STATE | RanContentWithCertErrorsSet>& setRanContentWithCertErrors(bool value)
|
|
667
|
+
{
|
|
668
|
+
static_assert(!(STATE & RanContentWithCertErrorsSet), "property ranContentWithCertErrors should not be set yet");
|
|
669
|
+
m_result->setRanContentWithCertErrors(value);
|
|
670
|
+
return castState<RanContentWithCertErrorsSet>();
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
InsecureContentStatusBuilder<STATE | DisplayedContentWithCertErrorsSet>& setDisplayedContentWithCertErrors(bool value)
|
|
674
|
+
{
|
|
675
|
+
static_assert(!(STATE & DisplayedContentWithCertErrorsSet), "property displayedContentWithCertErrors should not be set yet");
|
|
676
|
+
m_result->setDisplayedContentWithCertErrors(value);
|
|
677
|
+
return castState<DisplayedContentWithCertErrorsSet>();
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
InsecureContentStatusBuilder<STATE | RanInsecureContentStyleSet>& setRanInsecureContentStyle(const String& value)
|
|
681
|
+
{
|
|
682
|
+
static_assert(!(STATE & RanInsecureContentStyleSet), "property ranInsecureContentStyle should not be set yet");
|
|
683
|
+
m_result->setRanInsecureContentStyle(value);
|
|
684
|
+
return castState<RanInsecureContentStyleSet>();
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
InsecureContentStatusBuilder<STATE | DisplayedInsecureContentStyleSet>& setDisplayedInsecureContentStyle(const String& value)
|
|
688
|
+
{
|
|
689
|
+
static_assert(!(STATE & DisplayedInsecureContentStyleSet), "property displayedInsecureContentStyle should not be set yet");
|
|
690
|
+
m_result->setDisplayedInsecureContentStyle(value);
|
|
691
|
+
return castState<DisplayedInsecureContentStyleSet>();
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
std::unique_ptr<InsecureContentStatus> build()
|
|
695
|
+
{
|
|
696
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
697
|
+
return std::move(m_result);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
private:
|
|
701
|
+
friend class InsecureContentStatus;
|
|
702
|
+
InsecureContentStatusBuilder() : m_result(new InsecureContentStatus()) { }
|
|
703
|
+
|
|
704
|
+
template<int STEP> InsecureContentStatusBuilder<STATE | STEP>& castState()
|
|
705
|
+
{
|
|
706
|
+
return *reinterpret_cast<InsecureContentStatusBuilder<STATE | STEP>*>(this);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
std::unique_ptr<protocol::Security::InsecureContentStatus> m_result;
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
static InsecureContentStatusBuilder<0> create()
|
|
713
|
+
{
|
|
714
|
+
return InsecureContentStatusBuilder<0>();
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
private:
|
|
718
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
719
|
+
|
|
720
|
+
InsecureContentStatus()
|
|
721
|
+
{
|
|
722
|
+
m_ranMixedContent = false;
|
|
723
|
+
m_displayedMixedContent = false;
|
|
724
|
+
m_containedMixedForm = false;
|
|
725
|
+
m_ranContentWithCertErrors = false;
|
|
726
|
+
m_displayedContentWithCertErrors = false;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
bool m_ranMixedContent;
|
|
730
|
+
bool m_displayedMixedContent;
|
|
731
|
+
bool m_containedMixedForm;
|
|
732
|
+
bool m_ranContentWithCertErrors;
|
|
733
|
+
bool m_displayedContentWithCertErrors;
|
|
734
|
+
String m_ranInsecureContentStyle;
|
|
735
|
+
String m_displayedInsecureContentStyle;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
// ------------- Backend interface.
|
|
740
|
+
|
|
741
|
+
class Backend {
|
|
742
|
+
public:
|
|
743
|
+
virtual ~Backend() { }
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
virtual DispatchResponse disable()
|
|
747
|
+
{
|
|
748
|
+
return DispatchResponse::Success();
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
// ------------- Frontend interface.
|
|
753
|
+
|
|
754
|
+
class Frontend {
|
|
755
|
+
public:
|
|
756
|
+
explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
|
|
757
|
+
void certificateError(int eventId, const String& errorType, const String& requestURL);
|
|
758
|
+
void visibleSecurityStateChanged(std::unique_ptr<protocol::Security::VisibleSecurityState> visibleSecurityState);
|
|
759
|
+
void securityStateChanged(const String& securityState, bool schemeIsCryptographic, std::unique_ptr<protocol::Array<protocol::Security::SecurityStateExplanation>> explanations, std::unique_ptr<protocol::Security::InsecureContentStatus> insecureContentStatus, Maybe<String> summary = Maybe<String>());
|
|
760
|
+
|
|
761
|
+
void flush();
|
|
762
|
+
void sendRawNotification(std::unique_ptr<Serializable>);
|
|
763
|
+
private:
|
|
764
|
+
FrontendChannel* frontend_channel_;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
// ------------- Dispatcher.
|
|
768
|
+
|
|
769
|
+
class Dispatcher {
|
|
770
|
+
public:
|
|
771
|
+
static void wire(UberDispatcher*, Backend*);
|
|
772
|
+
|
|
773
|
+
private:
|
|
774
|
+
Dispatcher() { }
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
// ------------- Metainfo.
|
|
778
|
+
|
|
779
|
+
class Metainfo {
|
|
780
|
+
public:
|
|
781
|
+
using BackendClass = Backend;
|
|
782
|
+
using FrontendClass = Frontend;
|
|
783
|
+
using DispatcherClass = Dispatcher;
|
|
784
|
+
static const char domainName[];
|
|
785
|
+
static const char commandPrefix[];
|
|
786
|
+
static const char version[];
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
} // namespace Security
|
|
790
|
+
} // namespace v8_inspector
|
|
791
|
+
} // namespace protocol
|
|
792
|
+
|
|
793
|
+
#endif // !defined(v8_inspector_protocol_Security_h)
|