@triniwiz/nativescript-masonkit 1.0.0-alpha.12 → 1.0.0-alpha.14
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.js.map +1 -1
- package/helpers.d.ts +5 -5
- package/helpers.js +0 -3
- package/helpers.js.map +1 -1
- package/index.android.js +2 -2
- package/index.android.js.map +1 -1
- package/index.ios.js +2 -2
- package/index.ios.js.map +1 -1
- package/package.json +2 -2
- package/platforms/android/masonkit-release.aar +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/arm64-apple-ios.abi.json +4559 -1456
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1932 -1932
- 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/arm64-apple-ios-simulator.abi.json +4559 -1456
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +4559 -1456
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1932 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +1883 -1883
- package/style.d.ts +1 -1
- package/style.js +0 -1
- package/style.js.map +1 -1
- package/node.d.ts +0 -2
- package/node.js +0 -3
- package/node.js.map +0 -1
- package/platforms/ios/Podfile +0 -1
- package/platforms/ios/build.xcconfig +0 -5
- package/platforms/ios/prebuild.sh +0 -101
- package/platforms/new_native_src/cpp/Caches.cpp +0 -36
- package/platforms/new_native_src/cpp/Caches.h +0 -42
- package/platforms/new_native_src/cpp/Common.h +0 -34
- package/platforms/new_native_src/cpp/ConcurrentMap.h +0 -57
- package/platforms/new_native_src/cpp/Helpers.cpp +0 -101
- package/platforms/new_native_src/cpp/Helpers.h +0 -364
- package/platforms/new_native_src/cpp/MasonImpl.cpp +0 -68
- package/platforms/new_native_src/cpp/MasonImpl.h +0 -40
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +0 -89
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +0 -47
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +0 -2181
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +0 -420
- package/platforms/new_native_src/cpp/include/mason_native.h +0 -972
- package/platforms/new_native_src/cpp/include/robin_hood.h +0 -2544
- package/src-native/pods/Headers/include/APIDesign.md +0 -72
- package/src-native/pods/Headers/include/DEPS +0 -10
- package/src-native/pods/Headers/include/DIR_METADATA +0 -11
- package/src-native/pods/Headers/include/OWNERS +0 -23
- package/src-native/pods/Headers/include/cppgc/DEPS +0 -8
- package/src-native/pods/Headers/include/cppgc/OWNERS +0 -2
- package/src-native/pods/Headers/include/cppgc/README.md +0 -133
- package/src-native/pods/Headers/include/cppgc/allocation.h +0 -310
- package/src-native/pods/Headers/include/cppgc/common.h +0 -29
- package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
- package/src-native/pods/Headers/include/cppgc/custom-space.h +0 -97
- package/src-native/pods/Headers/include/cppgc/default-platform.h +0 -67
- package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
- package/src-native/pods/Headers/include/cppgc/explicit-management.h +0 -100
- package/src-native/pods/Headers/include/cppgc/garbage-collected.h +0 -106
- package/src-native/pods/Headers/include/cppgc/heap-consistency.h +0 -266
- package/src-native/pods/Headers/include/cppgc/heap-state.h +0 -82
- package/src-native/pods/Headers/include/cppgc/heap-statistics.h +0 -120
- package/src-native/pods/Headers/include/cppgc/heap.h +0 -206
- package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
- package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
- package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
- package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
- package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
- package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
- package/src-native/pods/Headers/include/cppgc/internal/logging.h +0 -50
- package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
- package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
- package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
- package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
- package/src-native/pods/Headers/include/cppgc/liveness-broker.h +0 -77
- package/src-native/pods/Headers/include/cppgc/macros.h +0 -26
- package/src-native/pods/Headers/include/cppgc/member.h +0 -291
- package/src-native/pods/Headers/include/cppgc/name-provider.h +0 -65
- package/src-native/pods/Headers/include/cppgc/object-size-trait.h +0 -58
- package/src-native/pods/Headers/include/cppgc/persistent.h +0 -370
- package/src-native/pods/Headers/include/cppgc/platform.h +0 -156
- package/src-native/pods/Headers/include/cppgc/prefinalizer.h +0 -75
- package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
- package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
- package/src-native/pods/Headers/include/cppgc/source-location.h +0 -92
- package/src-native/pods/Headers/include/cppgc/testing.h +0 -106
- package/src-native/pods/Headers/include/cppgc/trace-trait.h +0 -116
- package/src-native/pods/Headers/include/cppgc/type-traits.h +0 -240
- package/src-native/pods/Headers/include/cppgc/visitor.h +0 -379
- package/src-native/pods/Headers/include/js_protocol-1.2.json +0 -936
- package/src-native/pods/Headers/include/js_protocol-1.3.json +0 -1112
- package/src-native/pods/Headers/include/js_protocol.pdl +0 -1709
- package/src-native/pods/Headers/include/libffi/arm64/ffi.h +0 -524
- package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
- package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
- package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
- package/src-native/pods/Headers/include/libffi.h +0 -12
- package/src-native/pods/Headers/include/libplatform/DEPS +0 -9
- package/src-native/pods/Headers/include/libplatform/libplatform-export.h +0 -29
- package/src-native/pods/Headers/include/libplatform/libplatform.h +0 -106
- package/src-native/pods/Headers/include/libplatform/v8-tracing.h +0 -333
- package/src-native/pods/Headers/include/v8-array-buffer.h +0 -433
- package/src-native/pods/Headers/include/v8-callbacks.h +0 -397
- package/src-native/pods/Headers/include/v8-container.h +0 -129
- package/src-native/pods/Headers/include/v8-context.h +0 -407
- package/src-native/pods/Headers/include/v8-cppgc.h +0 -215
- package/src-native/pods/Headers/include/v8-data.h +0 -80
- package/src-native/pods/Headers/include/v8-date.h +0 -43
- package/src-native/pods/Headers/include/v8-debug.h +0 -168
- package/src-native/pods/Headers/include/v8-embedder-heap.h +0 -218
- package/src-native/pods/Headers/include/v8-embedder-state-scope.h +0 -51
- package/src-native/pods/Headers/include/v8-exception.h +0 -217
- package/src-native/pods/Headers/include/v8-extension.h +0 -62
- package/src-native/pods/Headers/include/v8-external.h +0 -37
- package/src-native/pods/Headers/include/v8-fast-api-calls.h +0 -939
- package/src-native/pods/Headers/include/v8-forward.h +0 -81
- package/src-native/pods/Headers/include/v8-function-callback.h +0 -475
- package/src-native/pods/Headers/include/v8-function.h +0 -125
- package/src-native/pods/Headers/include/v8-initialization.h +0 -315
- package/src-native/pods/Headers/include/v8-inspector-protocol.h +0 -13
- package/src-native/pods/Headers/include/v8-inspector.h +0 -376
- package/src-native/pods/Headers/include/v8-internal.h +0 -661
- package/src-native/pods/Headers/include/v8-isolate.h +0 -1709
- package/src-native/pods/Headers/include/v8-json.h +0 -47
- package/src-native/pods/Headers/include/v8-local-handle.h +0 -455
- package/src-native/pods/Headers/include/v8-locker.h +0 -149
- package/src-native/pods/Headers/include/v8-maybe.h +0 -137
- package/src-native/pods/Headers/include/v8-memory-span.h +0 -43
- package/src-native/pods/Headers/include/v8-message.h +0 -216
- package/src-native/pods/Headers/include/v8-metrics.h +0 -255
- package/src-native/pods/Headers/include/v8-microtask-queue.h +0 -152
- package/src-native/pods/Headers/include/v8-microtask.h +0 -28
- package/src-native/pods/Headers/include/v8-object.h +0 -775
- package/src-native/pods/Headers/include/v8-persistent-handle.h +0 -590
- package/src-native/pods/Headers/include/v8-platform.h +0 -1092
- package/src-native/pods/Headers/include/v8-primitive-object.h +0 -118
- package/src-native/pods/Headers/include/v8-primitive.h +0 -866
- package/src-native/pods/Headers/include/v8-profiler.h +0 -1198
- package/src-native/pods/Headers/include/v8-promise.h +0 -174
- package/src-native/pods/Headers/include/v8-proxy.h +0 -50
- package/src-native/pods/Headers/include/v8-regexp.h +0 -105
- package/src-native/pods/Headers/include/v8-script.h +0 -748
- package/src-native/pods/Headers/include/v8-snapshot.h +0 -196
- package/src-native/pods/Headers/include/v8-statistics.h +0 -217
- package/src-native/pods/Headers/include/v8-template.h +0 -1079
- package/src-native/pods/Headers/include/v8-traced-handle.h +0 -420
- package/src-native/pods/Headers/include/v8-typed-array.h +0 -282
- package/src-native/pods/Headers/include/v8-unwinder-state.h +0 -31
- package/src-native/pods/Headers/include/v8-unwinder.h +0 -132
- package/src-native/pods/Headers/include/v8-util.h +0 -658
- package/src-native/pods/Headers/include/v8-value-serializer-version.h +0 -24
- package/src-native/pods/Headers/include/v8-value-serializer.h +0 -279
- package/src-native/pods/Headers/include/v8-value.h +0 -526
- package/src-native/pods/Headers/include/v8-version-string.h +0 -38
- package/src-native/pods/Headers/include/v8-version.h +0 -20
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
- package/src-native/pods/Headers/include/v8-wasm.h +0 -257
- package/src-native/pods/Headers/include/v8-weak-callback-info.h +0 -86
- package/src-native/pods/Headers/include/v8.h +0 -88
- package/src-native/pods/Headers/include/v8config.h +0 -605
- package/src-native/pods/Headers/inspector/InspectorServer.h +0 -20
- package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
- package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
- package/src-native/pods/Headers/inspector/base64.h +0 -9
- package/src-native/pods/Headers/inspector/src/base/address-region.h +0 -95
- package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
- package/src-native/pods/Headers/inspector/src/base/atomicops.h +0 -332
- package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
- package/src-native/pods/Headers/inspector/src/base/base-export.h +0 -31
- package/src-native/pods/Headers/inspector/src/base/bits.h +0 -343
- package/src-native/pods/Headers/inspector/src/base/build_config.h +0 -234
- package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
- package/src-native/pods/Headers/inspector/src/base/export-template.h +0 -163
- package/src-native/pods/Headers/inspector/src/base/flags.h +0 -130
- package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
- package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
- package/src-native/pods/Headers/inspector/src/base/logging.h +0 -417
- package/src-native/pods/Headers/inspector/src/base/macros.h +0 -423
- package/src-native/pods/Headers/inspector/src/base/memory.h +0 -89
- package/src-native/pods/Headers/inspector/src/base/once.h +0 -108
- package/src-native/pods/Headers/inspector/src/base/optional.h +0 -882
- package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
- package/src-native/pods/Headers/inspector/src/base/platform/platform.h +0 -476
- package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
- package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
- package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
- package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
- package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
- package/src-native/pods/Headers/inspector/src/base/template-utils.h +0 -113
- package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
- package/src-native/pods/Headers/inspector/src/common/checks.h +0 -38
- package/src-native/pods/Headers/inspector/src/common/globals.h +0 -1842
- package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
- package/src-native/pods/Headers/inspector/src/debug/interface-types.h +0 -175
- package/src-native/pods/Headers/inspector/src/init/v8.h +0 -52
- package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
- package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
- package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
- package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
- package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
- package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
- package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
- package/src-native/pods/Headers/inspector/src/inspector/search-util.h +0 -26
- package/src-native/pods/Headers/inspector/src/inspector/string-16.h +0 -180
- package/src-native/pods/Headers/inspector/src/inspector/string-util.h +0 -128
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
- package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
- package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
- package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
- package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
- package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
- package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
- package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
- package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
- package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
- package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
- package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
- package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
- package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
- package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
- package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
- package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
- package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
- package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
- package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
- package/src-native/pods/Headers/inspector/src/numbers/conversions.h +0 -183
- package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
- package/src-native/pods/Headers/inspector/src/utils/allocation.h +0 -367
- package/src-native/pods/Headers/inspector/src/utils/vector.h +0 -324
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
- package/src-native/pods/Headers/inspector/utils.h +0 -32
- package/src-native/pods/Headers/inspector/v8-inspector-platform.h +0 -44
- package/src-native/pods/Headers/jsi/decorator.h +0 -762
- package/src-native/pods/Headers/jsi/instrumentation.h +0 -117
- package/src-native/pods/Headers/jsi/jsi-inl.h +0 -322
- package/src-native/pods/Headers/jsi/jsi.h +0 -1387
- package/src-native/pods/Headers/jsi/jsilib.h +0 -59
- package/src-native/pods/Headers/jsi/threadsafe.h +0 -79
- package/src-native/pods/Headers/runtime/ArgConverter.h +0 -61
- package/src-native/pods/Headers/runtime/ArrayAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/Caches.h +0 -98
- package/src-native/pods/Headers/runtime/ClassBuilder.h +0 -61
- package/src-native/pods/Headers/runtime/Common.h +0 -9
- package/src-native/pods/Headers/runtime/ConcurrentMap.h +0 -55
- package/src-native/pods/Headers/runtime/ConcurrentQueue.h +0 -28
- package/src-native/pods/Headers/runtime/Console.h +0 -27
- package/src-native/pods/Headers/runtime/Constants.h +0 -15
- package/src-native/pods/Headers/runtime/DataWrapper.h +0 -671
- package/src-native/pods/Headers/runtime/DictionaryAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/ExtVector.h +0 -21
- package/src-native/pods/Headers/runtime/FFICall.h +0 -105
- package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/FunctionReference.h +0 -18
- package/src-native/pods/Headers/runtime/Helpers.h +0 -84
- package/src-native/pods/Headers/runtime/InlineFunctions.h +0 -16
- package/src-native/pods/Headers/runtime/Interop.h +0 -202
- package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
- package/src-native/pods/Headers/runtime/Metadata.h +0 -981
- package/src-native/pods/Headers/runtime/MetadataBuilder.h +0 -72
- package/src-native/pods/Headers/runtime/MetadataInlines.h +0 -157
- package/src-native/pods/Headers/runtime/ModuleInternal.h +0 -59
- package/src-native/pods/Headers/runtime/NSDataAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/NativeScriptException.h +0 -27
- package/src-native/pods/Headers/runtime/ObjectManager.h +0 -31
- package/src-native/pods/Headers/runtime/OneByteStringResource.h +0 -21
- package/src-native/pods/Headers/runtime/Pointer.h +0 -26
- package/src-native/pods/Headers/runtime/PromiseProxy.h +0 -15
- package/src-native/pods/Headers/runtime/Reference.h +0 -38
- package/src-native/pods/Headers/runtime/Runtime.h +0 -67
- package/src-native/pods/Headers/runtime/RuntimeConfig.h +0 -17
- package/src-native/pods/Headers/runtime/SetTimeout.h +0 -34
- package/src-native/pods/Headers/runtime/SimpleAllocator.h +0 -23
- package/src-native/pods/Headers/runtime/StringHasher.h +0 -315
- package/src-native/pods/Headers/runtime/SymbolIterator.h +0 -18
- package/src-native/pods/Headers/runtime/SymbolLoader.h +0 -27
- package/src-native/pods/Headers/runtime/TNSDerivedClass.h +0 -8
- package/src-native/pods/Headers/runtime/TSHelpers.h +0 -15
- package/src-native/pods/Headers/runtime/Tasks.h +0 -19
- package/src-native/pods/Headers/runtime/UnmanagedType.h +0 -21
- package/src-native/pods/Headers/runtime/WeakRef.h +0 -15
- package/src-native/pods/Headers/runtime/Worker.h +0 -26
- package/src-native/pods/Headers/runtime/robin_hood.h +0 -2184
- package/src-native/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -70
- package/src-native/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/src-native/pods/Headers/v8runtime/V8Runtime.h +0 -215
- package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- package/src-native/pods/NativeScript.podspec +0 -68
|
@@ -1,2528 +0,0 @@
|
|
|
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_Network_h
|
|
8
|
-
#define v8_inspector_protocol_Network_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
|
-
#include "src/inspector/protocol/Debugger.h"
|
|
14
|
-
#include "src/inspector/protocol/Runtime.h"
|
|
15
|
-
#include "src/inspector/protocol/Security.h"
|
|
16
|
-
|
|
17
|
-
namespace v8_inspector {
|
|
18
|
-
namespace protocol {
|
|
19
|
-
namespace Network {
|
|
20
|
-
using ResourceType = String;
|
|
21
|
-
using LoaderId = String;
|
|
22
|
-
using RequestId = String;
|
|
23
|
-
using InterceptionId = String;
|
|
24
|
-
using ErrorReason = String;
|
|
25
|
-
using TimeSinceEpoch = double;
|
|
26
|
-
using MonotonicTime = double;
|
|
27
|
-
using Headers = Object;
|
|
28
|
-
using ConnectionType = String;
|
|
29
|
-
using CookieSameSite = String;
|
|
30
|
-
using CookiePriority = String;
|
|
31
|
-
class ResourceTiming;
|
|
32
|
-
using ResourcePriority = String;
|
|
33
|
-
class Request;
|
|
34
|
-
class SignedCertificateTimestamp;
|
|
35
|
-
class SecurityDetails;
|
|
36
|
-
using CertificateTransparencyCompliance = String;
|
|
37
|
-
using BlockedReason = String;
|
|
38
|
-
class Response;
|
|
39
|
-
class WebSocketRequest;
|
|
40
|
-
class WebSocketResponse;
|
|
41
|
-
class WebSocketFrame;
|
|
42
|
-
class Initiator;
|
|
43
|
-
class Cookie;
|
|
44
|
-
using SetCookieBlockedReason = String;
|
|
45
|
-
using CookieBlockedReason = String;
|
|
46
|
-
class BlockedSetCookieWithReason;
|
|
47
|
-
class BlockedCookieWithReason;
|
|
48
|
-
class AuthChallenge;
|
|
49
|
-
class SignedExchangeSignature;
|
|
50
|
-
class SignedExchangeHeader;
|
|
51
|
-
using SignedExchangeErrorField = String;
|
|
52
|
-
class SignedExchangeError;
|
|
53
|
-
class SignedExchangeInfo;
|
|
54
|
-
|
|
55
|
-
// ------------- Forward and enum declarations.
|
|
56
|
-
|
|
57
|
-
namespace ResourceTypeEnum {
|
|
58
|
-
extern const char Document[];
|
|
59
|
-
extern const char Stylesheet[];
|
|
60
|
-
extern const char Image[];
|
|
61
|
-
extern const char Media[];
|
|
62
|
-
extern const char Font[];
|
|
63
|
-
extern const char Script[];
|
|
64
|
-
extern const char TextTrack[];
|
|
65
|
-
extern const char XHR[];
|
|
66
|
-
extern const char Fetch[];
|
|
67
|
-
extern const char EventSource[];
|
|
68
|
-
extern const char WebSocket[];
|
|
69
|
-
extern const char Manifest[];
|
|
70
|
-
extern const char SignedExchange[];
|
|
71
|
-
extern const char Ping[];
|
|
72
|
-
extern const char CSPViolationReport[];
|
|
73
|
-
extern const char Other[];
|
|
74
|
-
} // namespace ResourceTypeEnum
|
|
75
|
-
|
|
76
|
-
namespace ErrorReasonEnum {
|
|
77
|
-
extern const char Failed[];
|
|
78
|
-
extern const char Aborted[];
|
|
79
|
-
extern const char TimedOut[];
|
|
80
|
-
extern const char AccessDenied[];
|
|
81
|
-
extern const char ConnectionClosed[];
|
|
82
|
-
extern const char ConnectionReset[];
|
|
83
|
-
extern const char ConnectionRefused[];
|
|
84
|
-
extern const char ConnectionAborted[];
|
|
85
|
-
extern const char ConnectionFailed[];
|
|
86
|
-
extern const char NameNotResolved[];
|
|
87
|
-
extern const char InternetDisconnected[];
|
|
88
|
-
extern const char AddressUnreachable[];
|
|
89
|
-
extern const char BlockedByClient[];
|
|
90
|
-
extern const char BlockedByResponse[];
|
|
91
|
-
} // namespace ErrorReasonEnum
|
|
92
|
-
|
|
93
|
-
namespace ConnectionTypeEnum {
|
|
94
|
-
extern const char None[];
|
|
95
|
-
extern const char Cellular2g[];
|
|
96
|
-
extern const char Cellular3g[];
|
|
97
|
-
extern const char Cellular4g[];
|
|
98
|
-
extern const char Bluetooth[];
|
|
99
|
-
extern const char Ethernet[];
|
|
100
|
-
extern const char Wifi[];
|
|
101
|
-
extern const char Wimax[];
|
|
102
|
-
extern const char Other[];
|
|
103
|
-
} // namespace ConnectionTypeEnum
|
|
104
|
-
|
|
105
|
-
namespace CookieSameSiteEnum {
|
|
106
|
-
extern const char Strict[];
|
|
107
|
-
extern const char Lax[];
|
|
108
|
-
extern const char None[];
|
|
109
|
-
} // namespace CookieSameSiteEnum
|
|
110
|
-
|
|
111
|
-
namespace CookiePriorityEnum {
|
|
112
|
-
extern const char Low[];
|
|
113
|
-
extern const char Medium[];
|
|
114
|
-
extern const char High[];
|
|
115
|
-
} // namespace CookiePriorityEnum
|
|
116
|
-
|
|
117
|
-
namespace ResourcePriorityEnum {
|
|
118
|
-
extern const char VeryLow[];
|
|
119
|
-
extern const char Low[];
|
|
120
|
-
extern const char Medium[];
|
|
121
|
-
extern const char High[];
|
|
122
|
-
extern const char VeryHigh[];
|
|
123
|
-
} // namespace ResourcePriorityEnum
|
|
124
|
-
|
|
125
|
-
namespace CertificateTransparencyComplianceEnum {
|
|
126
|
-
extern const char Unknown[];
|
|
127
|
-
extern const char NotCompliant[];
|
|
128
|
-
extern const char Compliant[];
|
|
129
|
-
} // namespace CertificateTransparencyComplianceEnum
|
|
130
|
-
|
|
131
|
-
namespace BlockedReasonEnum {
|
|
132
|
-
extern const char Other[];
|
|
133
|
-
extern const char Csp[];
|
|
134
|
-
extern const char MixedContent[];
|
|
135
|
-
extern const char Origin[];
|
|
136
|
-
extern const char Inspector[];
|
|
137
|
-
extern const char SubresourceFilter[];
|
|
138
|
-
extern const char ContentType[];
|
|
139
|
-
extern const char CollapsedByClient[];
|
|
140
|
-
} // namespace BlockedReasonEnum
|
|
141
|
-
|
|
142
|
-
namespace SetCookieBlockedReasonEnum {
|
|
143
|
-
extern const char SecureOnly[];
|
|
144
|
-
extern const char SameSiteStrict[];
|
|
145
|
-
extern const char SameSiteLax[];
|
|
146
|
-
extern const char SameSiteUnspecifiedTreatedAsLax[];
|
|
147
|
-
extern const char SameSiteNoneInsecure[];
|
|
148
|
-
extern const char UserPreferences[];
|
|
149
|
-
extern const char SyntaxError[];
|
|
150
|
-
extern const char SchemeNotSupported[];
|
|
151
|
-
extern const char OverwriteSecure[];
|
|
152
|
-
extern const char InvalidDomain[];
|
|
153
|
-
extern const char InvalidPrefix[];
|
|
154
|
-
extern const char UnknownError[];
|
|
155
|
-
} // namespace SetCookieBlockedReasonEnum
|
|
156
|
-
|
|
157
|
-
namespace CookieBlockedReasonEnum {
|
|
158
|
-
extern const char SecureOnly[];
|
|
159
|
-
extern const char NotOnPath[];
|
|
160
|
-
extern const char DomainMismatch[];
|
|
161
|
-
extern const char SameSiteStrict[];
|
|
162
|
-
extern const char SameSiteLax[];
|
|
163
|
-
extern const char SameSiteUnspecifiedTreatedAsLax[];
|
|
164
|
-
extern const char SameSiteNoneInsecure[];
|
|
165
|
-
extern const char UserPreferences[];
|
|
166
|
-
extern const char UnknownError[];
|
|
167
|
-
} // namespace CookieBlockedReasonEnum
|
|
168
|
-
|
|
169
|
-
namespace SignedExchangeErrorFieldEnum {
|
|
170
|
-
extern const char SignatureSig[];
|
|
171
|
-
extern const char SignatureIntegrity[];
|
|
172
|
-
extern const char SignatureCertUrl[];
|
|
173
|
-
extern const char SignatureCertSha256[];
|
|
174
|
-
extern const char SignatureValidityUrl[];
|
|
175
|
-
extern const char SignatureTimestamps[];
|
|
176
|
-
} // namespace SignedExchangeErrorFieldEnum
|
|
177
|
-
|
|
178
|
-
// ------------- Type and builder declarations.
|
|
179
|
-
|
|
180
|
-
class ResourceTiming : public ::v8_crdtp::ProtocolObject<ResourceTiming> {
|
|
181
|
-
public:
|
|
182
|
-
~ResourceTiming() override { }
|
|
183
|
-
|
|
184
|
-
double getRequestTime() { return m_requestTime; }
|
|
185
|
-
void setRequestTime(double value) { m_requestTime = value; }
|
|
186
|
-
|
|
187
|
-
double getProxyStart() { return m_proxyStart; }
|
|
188
|
-
void setProxyStart(double value) { m_proxyStart = value; }
|
|
189
|
-
|
|
190
|
-
double getProxyEnd() { return m_proxyEnd; }
|
|
191
|
-
void setProxyEnd(double value) { m_proxyEnd = value; }
|
|
192
|
-
|
|
193
|
-
double getDnsStart() { return m_dnsStart; }
|
|
194
|
-
void setDnsStart(double value) { m_dnsStart = value; }
|
|
195
|
-
|
|
196
|
-
double getDnsEnd() { return m_dnsEnd; }
|
|
197
|
-
void setDnsEnd(double value) { m_dnsEnd = value; }
|
|
198
|
-
|
|
199
|
-
double getConnectStart() { return m_connectStart; }
|
|
200
|
-
void setConnectStart(double value) { m_connectStart = value; }
|
|
201
|
-
|
|
202
|
-
double getConnectEnd() { return m_connectEnd; }
|
|
203
|
-
void setConnectEnd(double value) { m_connectEnd = value; }
|
|
204
|
-
|
|
205
|
-
double getSslStart() { return m_sslStart; }
|
|
206
|
-
void setSslStart(double value) { m_sslStart = value; }
|
|
207
|
-
|
|
208
|
-
double getSslEnd() { return m_sslEnd; }
|
|
209
|
-
void setSslEnd(double value) { m_sslEnd = value; }
|
|
210
|
-
|
|
211
|
-
double getWorkerStart() { return m_workerStart; }
|
|
212
|
-
void setWorkerStart(double value) { m_workerStart = value; }
|
|
213
|
-
|
|
214
|
-
double getWorkerReady() { return m_workerReady; }
|
|
215
|
-
void setWorkerReady(double value) { m_workerReady = value; }
|
|
216
|
-
|
|
217
|
-
double getSendStart() { return m_sendStart; }
|
|
218
|
-
void setSendStart(double value) { m_sendStart = value; }
|
|
219
|
-
|
|
220
|
-
double getSendEnd() { return m_sendEnd; }
|
|
221
|
-
void setSendEnd(double value) { m_sendEnd = value; }
|
|
222
|
-
|
|
223
|
-
double getPushStart() { return m_pushStart; }
|
|
224
|
-
void setPushStart(double value) { m_pushStart = value; }
|
|
225
|
-
|
|
226
|
-
double getPushEnd() { return m_pushEnd; }
|
|
227
|
-
void setPushEnd(double value) { m_pushEnd = value; }
|
|
228
|
-
|
|
229
|
-
double getReceiveHeadersEnd() { return m_receiveHeadersEnd; }
|
|
230
|
-
void setReceiveHeadersEnd(double value) { m_receiveHeadersEnd = value; }
|
|
231
|
-
|
|
232
|
-
template<int STATE>
|
|
233
|
-
class ResourceTimingBuilder {
|
|
234
|
-
public:
|
|
235
|
-
enum {
|
|
236
|
-
NoFieldsSet = 0,
|
|
237
|
-
RequestTimeSet = 1 << 1,
|
|
238
|
-
ProxyStartSet = 1 << 2,
|
|
239
|
-
ProxyEndSet = 1 << 3,
|
|
240
|
-
DnsStartSet = 1 << 4,
|
|
241
|
-
DnsEndSet = 1 << 5,
|
|
242
|
-
ConnectStartSet = 1 << 6,
|
|
243
|
-
ConnectEndSet = 1 << 7,
|
|
244
|
-
SslStartSet = 1 << 8,
|
|
245
|
-
SslEndSet = 1 << 9,
|
|
246
|
-
WorkerStartSet = 1 << 10,
|
|
247
|
-
WorkerReadySet = 1 << 11,
|
|
248
|
-
SendStartSet = 1 << 12,
|
|
249
|
-
SendEndSet = 1 << 13,
|
|
250
|
-
PushStartSet = 1 << 14,
|
|
251
|
-
PushEndSet = 1 << 15,
|
|
252
|
-
ReceiveHeadersEndSet = 1 << 16,
|
|
253
|
-
AllFieldsSet = (RequestTimeSet | ProxyStartSet | ProxyEndSet | DnsStartSet | DnsEndSet | ConnectStartSet | ConnectEndSet | SslStartSet | SslEndSet | WorkerStartSet | WorkerReadySet | SendStartSet | SendEndSet | PushStartSet | PushEndSet | ReceiveHeadersEndSet | 0)};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
ResourceTimingBuilder<STATE | RequestTimeSet>& setRequestTime(double value)
|
|
257
|
-
{
|
|
258
|
-
static_assert(!(STATE & RequestTimeSet), "property requestTime should not be set yet");
|
|
259
|
-
m_result->setRequestTime(value);
|
|
260
|
-
return castState<RequestTimeSet>();
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
ResourceTimingBuilder<STATE | ProxyStartSet>& setProxyStart(double value)
|
|
264
|
-
{
|
|
265
|
-
static_assert(!(STATE & ProxyStartSet), "property proxyStart should not be set yet");
|
|
266
|
-
m_result->setProxyStart(value);
|
|
267
|
-
return castState<ProxyStartSet>();
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
ResourceTimingBuilder<STATE | ProxyEndSet>& setProxyEnd(double value)
|
|
271
|
-
{
|
|
272
|
-
static_assert(!(STATE & ProxyEndSet), "property proxyEnd should not be set yet");
|
|
273
|
-
m_result->setProxyEnd(value);
|
|
274
|
-
return castState<ProxyEndSet>();
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
ResourceTimingBuilder<STATE | DnsStartSet>& setDnsStart(double value)
|
|
278
|
-
{
|
|
279
|
-
static_assert(!(STATE & DnsStartSet), "property dnsStart should not be set yet");
|
|
280
|
-
m_result->setDnsStart(value);
|
|
281
|
-
return castState<DnsStartSet>();
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
ResourceTimingBuilder<STATE | DnsEndSet>& setDnsEnd(double value)
|
|
285
|
-
{
|
|
286
|
-
static_assert(!(STATE & DnsEndSet), "property dnsEnd should not be set yet");
|
|
287
|
-
m_result->setDnsEnd(value);
|
|
288
|
-
return castState<DnsEndSet>();
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
ResourceTimingBuilder<STATE | ConnectStartSet>& setConnectStart(double value)
|
|
292
|
-
{
|
|
293
|
-
static_assert(!(STATE & ConnectStartSet), "property connectStart should not be set yet");
|
|
294
|
-
m_result->setConnectStart(value);
|
|
295
|
-
return castState<ConnectStartSet>();
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
ResourceTimingBuilder<STATE | ConnectEndSet>& setConnectEnd(double value)
|
|
299
|
-
{
|
|
300
|
-
static_assert(!(STATE & ConnectEndSet), "property connectEnd should not be set yet");
|
|
301
|
-
m_result->setConnectEnd(value);
|
|
302
|
-
return castState<ConnectEndSet>();
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
ResourceTimingBuilder<STATE | SslStartSet>& setSslStart(double value)
|
|
306
|
-
{
|
|
307
|
-
static_assert(!(STATE & SslStartSet), "property sslStart should not be set yet");
|
|
308
|
-
m_result->setSslStart(value);
|
|
309
|
-
return castState<SslStartSet>();
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
ResourceTimingBuilder<STATE | SslEndSet>& setSslEnd(double value)
|
|
313
|
-
{
|
|
314
|
-
static_assert(!(STATE & SslEndSet), "property sslEnd should not be set yet");
|
|
315
|
-
m_result->setSslEnd(value);
|
|
316
|
-
return castState<SslEndSet>();
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
ResourceTimingBuilder<STATE | WorkerStartSet>& setWorkerStart(double value)
|
|
320
|
-
{
|
|
321
|
-
static_assert(!(STATE & WorkerStartSet), "property workerStart should not be set yet");
|
|
322
|
-
m_result->setWorkerStart(value);
|
|
323
|
-
return castState<WorkerStartSet>();
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
ResourceTimingBuilder<STATE | WorkerReadySet>& setWorkerReady(double value)
|
|
327
|
-
{
|
|
328
|
-
static_assert(!(STATE & WorkerReadySet), "property workerReady should not be set yet");
|
|
329
|
-
m_result->setWorkerReady(value);
|
|
330
|
-
return castState<WorkerReadySet>();
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
ResourceTimingBuilder<STATE | SendStartSet>& setSendStart(double value)
|
|
334
|
-
{
|
|
335
|
-
static_assert(!(STATE & SendStartSet), "property sendStart should not be set yet");
|
|
336
|
-
m_result->setSendStart(value);
|
|
337
|
-
return castState<SendStartSet>();
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
ResourceTimingBuilder<STATE | SendEndSet>& setSendEnd(double value)
|
|
341
|
-
{
|
|
342
|
-
static_assert(!(STATE & SendEndSet), "property sendEnd should not be set yet");
|
|
343
|
-
m_result->setSendEnd(value);
|
|
344
|
-
return castState<SendEndSet>();
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
ResourceTimingBuilder<STATE | PushStartSet>& setPushStart(double value)
|
|
348
|
-
{
|
|
349
|
-
static_assert(!(STATE & PushStartSet), "property pushStart should not be set yet");
|
|
350
|
-
m_result->setPushStart(value);
|
|
351
|
-
return castState<PushStartSet>();
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
ResourceTimingBuilder<STATE | PushEndSet>& setPushEnd(double value)
|
|
355
|
-
{
|
|
356
|
-
static_assert(!(STATE & PushEndSet), "property pushEnd should not be set yet");
|
|
357
|
-
m_result->setPushEnd(value);
|
|
358
|
-
return castState<PushEndSet>();
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
ResourceTimingBuilder<STATE | ReceiveHeadersEndSet>& setReceiveHeadersEnd(double value)
|
|
362
|
-
{
|
|
363
|
-
static_assert(!(STATE & ReceiveHeadersEndSet), "property receiveHeadersEnd should not be set yet");
|
|
364
|
-
m_result->setReceiveHeadersEnd(value);
|
|
365
|
-
return castState<ReceiveHeadersEndSet>();
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
std::unique_ptr<ResourceTiming> build()
|
|
369
|
-
{
|
|
370
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
371
|
-
return std::move(m_result);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
private:
|
|
375
|
-
friend class ResourceTiming;
|
|
376
|
-
ResourceTimingBuilder() : m_result(new ResourceTiming()) { }
|
|
377
|
-
|
|
378
|
-
template<int STEP> ResourceTimingBuilder<STATE | STEP>& castState()
|
|
379
|
-
{
|
|
380
|
-
return *reinterpret_cast<ResourceTimingBuilder<STATE | STEP>*>(this);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
std::unique_ptr<protocol::Network::ResourceTiming> m_result;
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
static ResourceTimingBuilder<0> create()
|
|
387
|
-
{
|
|
388
|
-
return ResourceTimingBuilder<0>();
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
private:
|
|
392
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
393
|
-
|
|
394
|
-
ResourceTiming()
|
|
395
|
-
{
|
|
396
|
-
m_requestTime = 0;
|
|
397
|
-
m_proxyStart = 0;
|
|
398
|
-
m_proxyEnd = 0;
|
|
399
|
-
m_dnsStart = 0;
|
|
400
|
-
m_dnsEnd = 0;
|
|
401
|
-
m_connectStart = 0;
|
|
402
|
-
m_connectEnd = 0;
|
|
403
|
-
m_sslStart = 0;
|
|
404
|
-
m_sslEnd = 0;
|
|
405
|
-
m_workerStart = 0;
|
|
406
|
-
m_workerReady = 0;
|
|
407
|
-
m_sendStart = 0;
|
|
408
|
-
m_sendEnd = 0;
|
|
409
|
-
m_pushStart = 0;
|
|
410
|
-
m_pushEnd = 0;
|
|
411
|
-
m_receiveHeadersEnd = 0;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
double m_requestTime;
|
|
415
|
-
double m_proxyStart;
|
|
416
|
-
double m_proxyEnd;
|
|
417
|
-
double m_dnsStart;
|
|
418
|
-
double m_dnsEnd;
|
|
419
|
-
double m_connectStart;
|
|
420
|
-
double m_connectEnd;
|
|
421
|
-
double m_sslStart;
|
|
422
|
-
double m_sslEnd;
|
|
423
|
-
double m_workerStart;
|
|
424
|
-
double m_workerReady;
|
|
425
|
-
double m_sendStart;
|
|
426
|
-
double m_sendEnd;
|
|
427
|
-
double m_pushStart;
|
|
428
|
-
double m_pushEnd;
|
|
429
|
-
double m_receiveHeadersEnd;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
class Request : public ::v8_crdtp::ProtocolObject<Request> {
|
|
434
|
-
public:
|
|
435
|
-
~Request() override { }
|
|
436
|
-
|
|
437
|
-
String getUrl() { return m_url; }
|
|
438
|
-
void setUrl(const String& value) { m_url = value; }
|
|
439
|
-
|
|
440
|
-
bool hasUrlFragment() { return m_urlFragment.isJust(); }
|
|
441
|
-
String getUrlFragment(const String& defaultValue) { return m_urlFragment.isJust() ? m_urlFragment.fromJust() : defaultValue; }
|
|
442
|
-
void setUrlFragment(const String& value) { m_urlFragment = value; }
|
|
443
|
-
|
|
444
|
-
String getMethod() { return m_method; }
|
|
445
|
-
void setMethod(const String& value) { m_method = value; }
|
|
446
|
-
|
|
447
|
-
protocol::Network::Headers* getHeaders() { return m_headers.get(); }
|
|
448
|
-
void setHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_headers = std::move(value); }
|
|
449
|
-
|
|
450
|
-
bool hasPostData() { return m_postData.isJust(); }
|
|
451
|
-
String getPostData(const String& defaultValue) { return m_postData.isJust() ? m_postData.fromJust() : defaultValue; }
|
|
452
|
-
void setPostData(const String& value) { m_postData = value; }
|
|
453
|
-
|
|
454
|
-
bool hasHasPostData() { return m_hasPostData.isJust(); }
|
|
455
|
-
bool getHasPostData(bool defaultValue) { return m_hasPostData.isJust() ? m_hasPostData.fromJust() : defaultValue; }
|
|
456
|
-
void setHasPostData(bool value) { m_hasPostData = value; }
|
|
457
|
-
|
|
458
|
-
bool hasMixedContentType() { return m_mixedContentType.isJust(); }
|
|
459
|
-
String getMixedContentType(const String& defaultValue) { return m_mixedContentType.isJust() ? m_mixedContentType.fromJust() : defaultValue; }
|
|
460
|
-
void setMixedContentType(const String& value) { m_mixedContentType = value; }
|
|
461
|
-
|
|
462
|
-
String getInitialPriority() { return m_initialPriority; }
|
|
463
|
-
void setInitialPriority(const String& value) { m_initialPriority = value; }
|
|
464
|
-
|
|
465
|
-
struct ReferrerPolicyEnum {
|
|
466
|
-
static const char* UnsafeUrl;
|
|
467
|
-
static const char* NoReferrerWhenDowngrade;
|
|
468
|
-
static const char* NoReferrer;
|
|
469
|
-
static const char* Origin;
|
|
470
|
-
static const char* OriginWhenCrossOrigin;
|
|
471
|
-
static const char* SameOrigin;
|
|
472
|
-
static const char* StrictOrigin;
|
|
473
|
-
static const char* StrictOriginWhenCrossOrigin;
|
|
474
|
-
}; // ReferrerPolicyEnum
|
|
475
|
-
|
|
476
|
-
String getReferrerPolicy() { return m_referrerPolicy; }
|
|
477
|
-
void setReferrerPolicy(const String& value) { m_referrerPolicy = value; }
|
|
478
|
-
|
|
479
|
-
bool hasIsLinkPreload() { return m_isLinkPreload.isJust(); }
|
|
480
|
-
bool getIsLinkPreload(bool defaultValue) { return m_isLinkPreload.isJust() ? m_isLinkPreload.fromJust() : defaultValue; }
|
|
481
|
-
void setIsLinkPreload(bool value) { m_isLinkPreload = value; }
|
|
482
|
-
|
|
483
|
-
template<int STATE>
|
|
484
|
-
class RequestBuilder {
|
|
485
|
-
public:
|
|
486
|
-
enum {
|
|
487
|
-
NoFieldsSet = 0,
|
|
488
|
-
UrlSet = 1 << 1,
|
|
489
|
-
MethodSet = 1 << 2,
|
|
490
|
-
HeadersSet = 1 << 3,
|
|
491
|
-
InitialPrioritySet = 1 << 4,
|
|
492
|
-
ReferrerPolicySet = 1 << 5,
|
|
493
|
-
AllFieldsSet = (UrlSet | MethodSet | HeadersSet | InitialPrioritySet | ReferrerPolicySet | 0)};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
RequestBuilder<STATE | UrlSet>& setUrl(const String& value)
|
|
497
|
-
{
|
|
498
|
-
static_assert(!(STATE & UrlSet), "property url should not be set yet");
|
|
499
|
-
m_result->setUrl(value);
|
|
500
|
-
return castState<UrlSet>();
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
RequestBuilder<STATE>& setUrlFragment(const String& value)
|
|
504
|
-
{
|
|
505
|
-
m_result->setUrlFragment(value);
|
|
506
|
-
return *this;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
RequestBuilder<STATE | MethodSet>& setMethod(const String& value)
|
|
510
|
-
{
|
|
511
|
-
static_assert(!(STATE & MethodSet), "property method should not be set yet");
|
|
512
|
-
m_result->setMethod(value);
|
|
513
|
-
return castState<MethodSet>();
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
RequestBuilder<STATE | HeadersSet>& setHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
517
|
-
{
|
|
518
|
-
static_assert(!(STATE & HeadersSet), "property headers should not be set yet");
|
|
519
|
-
m_result->setHeaders(std::move(value));
|
|
520
|
-
return castState<HeadersSet>();
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
RequestBuilder<STATE>& setPostData(const String& value)
|
|
524
|
-
{
|
|
525
|
-
m_result->setPostData(value);
|
|
526
|
-
return *this;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
RequestBuilder<STATE>& setHasPostData(bool value)
|
|
530
|
-
{
|
|
531
|
-
m_result->setHasPostData(value);
|
|
532
|
-
return *this;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
RequestBuilder<STATE>& setMixedContentType(const String& value)
|
|
536
|
-
{
|
|
537
|
-
m_result->setMixedContentType(value);
|
|
538
|
-
return *this;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
RequestBuilder<STATE | InitialPrioritySet>& setInitialPriority(const String& value)
|
|
542
|
-
{
|
|
543
|
-
static_assert(!(STATE & InitialPrioritySet), "property initialPriority should not be set yet");
|
|
544
|
-
m_result->setInitialPriority(value);
|
|
545
|
-
return castState<InitialPrioritySet>();
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
RequestBuilder<STATE | ReferrerPolicySet>& setReferrerPolicy(const String& value)
|
|
549
|
-
{
|
|
550
|
-
static_assert(!(STATE & ReferrerPolicySet), "property referrerPolicy should not be set yet");
|
|
551
|
-
m_result->setReferrerPolicy(value);
|
|
552
|
-
return castState<ReferrerPolicySet>();
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
RequestBuilder<STATE>& setIsLinkPreload(bool value)
|
|
556
|
-
{
|
|
557
|
-
m_result->setIsLinkPreload(value);
|
|
558
|
-
return *this;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
std::unique_ptr<Request> build()
|
|
562
|
-
{
|
|
563
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
564
|
-
return std::move(m_result);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
private:
|
|
568
|
-
friend class Request;
|
|
569
|
-
RequestBuilder() : m_result(new Request()) { }
|
|
570
|
-
|
|
571
|
-
template<int STEP> RequestBuilder<STATE | STEP>& castState()
|
|
572
|
-
{
|
|
573
|
-
return *reinterpret_cast<RequestBuilder<STATE | STEP>*>(this);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
std::unique_ptr<protocol::Network::Request> m_result;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
static RequestBuilder<0> create()
|
|
580
|
-
{
|
|
581
|
-
return RequestBuilder<0>();
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
private:
|
|
585
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
586
|
-
|
|
587
|
-
Request()
|
|
588
|
-
{
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
String m_url;
|
|
592
|
-
Maybe<String> m_urlFragment;
|
|
593
|
-
String m_method;
|
|
594
|
-
std::unique_ptr<protocol::Network::Headers> m_headers;
|
|
595
|
-
Maybe<String> m_postData;
|
|
596
|
-
Maybe<bool> m_hasPostData;
|
|
597
|
-
Maybe<String> m_mixedContentType;
|
|
598
|
-
String m_initialPriority;
|
|
599
|
-
String m_referrerPolicy;
|
|
600
|
-
Maybe<bool> m_isLinkPreload;
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
class SignedCertificateTimestamp : public ::v8_crdtp::ProtocolObject<SignedCertificateTimestamp> {
|
|
605
|
-
public:
|
|
606
|
-
~SignedCertificateTimestamp() override { }
|
|
607
|
-
|
|
608
|
-
String getStatus() { return m_status; }
|
|
609
|
-
void setStatus(const String& value) { m_status = value; }
|
|
610
|
-
|
|
611
|
-
String getOrigin() { return m_origin; }
|
|
612
|
-
void setOrigin(const String& value) { m_origin = value; }
|
|
613
|
-
|
|
614
|
-
String getLogDescription() { return m_logDescription; }
|
|
615
|
-
void setLogDescription(const String& value) { m_logDescription = value; }
|
|
616
|
-
|
|
617
|
-
String getLogId() { return m_logId; }
|
|
618
|
-
void setLogId(const String& value) { m_logId = value; }
|
|
619
|
-
|
|
620
|
-
double getTimestamp() { return m_timestamp; }
|
|
621
|
-
void setTimestamp(double value) { m_timestamp = value; }
|
|
622
|
-
|
|
623
|
-
String getHashAlgorithm() { return m_hashAlgorithm; }
|
|
624
|
-
void setHashAlgorithm(const String& value) { m_hashAlgorithm = value; }
|
|
625
|
-
|
|
626
|
-
String getSignatureAlgorithm() { return m_signatureAlgorithm; }
|
|
627
|
-
void setSignatureAlgorithm(const String& value) { m_signatureAlgorithm = value; }
|
|
628
|
-
|
|
629
|
-
String getSignatureData() { return m_signatureData; }
|
|
630
|
-
void setSignatureData(const String& value) { m_signatureData = value; }
|
|
631
|
-
|
|
632
|
-
template<int STATE>
|
|
633
|
-
class SignedCertificateTimestampBuilder {
|
|
634
|
-
public:
|
|
635
|
-
enum {
|
|
636
|
-
NoFieldsSet = 0,
|
|
637
|
-
StatusSet = 1 << 1,
|
|
638
|
-
OriginSet = 1 << 2,
|
|
639
|
-
LogDescriptionSet = 1 << 3,
|
|
640
|
-
LogIdSet = 1 << 4,
|
|
641
|
-
TimestampSet = 1 << 5,
|
|
642
|
-
HashAlgorithmSet = 1 << 6,
|
|
643
|
-
SignatureAlgorithmSet = 1 << 7,
|
|
644
|
-
SignatureDataSet = 1 << 8,
|
|
645
|
-
AllFieldsSet = (StatusSet | OriginSet | LogDescriptionSet | LogIdSet | TimestampSet | HashAlgorithmSet | SignatureAlgorithmSet | SignatureDataSet | 0)};
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
SignedCertificateTimestampBuilder<STATE | StatusSet>& setStatus(const String& value)
|
|
649
|
-
{
|
|
650
|
-
static_assert(!(STATE & StatusSet), "property status should not be set yet");
|
|
651
|
-
m_result->setStatus(value);
|
|
652
|
-
return castState<StatusSet>();
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
SignedCertificateTimestampBuilder<STATE | OriginSet>& setOrigin(const String& value)
|
|
656
|
-
{
|
|
657
|
-
static_assert(!(STATE & OriginSet), "property origin should not be set yet");
|
|
658
|
-
m_result->setOrigin(value);
|
|
659
|
-
return castState<OriginSet>();
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
SignedCertificateTimestampBuilder<STATE | LogDescriptionSet>& setLogDescription(const String& value)
|
|
663
|
-
{
|
|
664
|
-
static_assert(!(STATE & LogDescriptionSet), "property logDescription should not be set yet");
|
|
665
|
-
m_result->setLogDescription(value);
|
|
666
|
-
return castState<LogDescriptionSet>();
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
SignedCertificateTimestampBuilder<STATE | LogIdSet>& setLogId(const String& value)
|
|
670
|
-
{
|
|
671
|
-
static_assert(!(STATE & LogIdSet), "property logId should not be set yet");
|
|
672
|
-
m_result->setLogId(value);
|
|
673
|
-
return castState<LogIdSet>();
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
SignedCertificateTimestampBuilder<STATE | TimestampSet>& setTimestamp(double value)
|
|
677
|
-
{
|
|
678
|
-
static_assert(!(STATE & TimestampSet), "property timestamp should not be set yet");
|
|
679
|
-
m_result->setTimestamp(value);
|
|
680
|
-
return castState<TimestampSet>();
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
SignedCertificateTimestampBuilder<STATE | HashAlgorithmSet>& setHashAlgorithm(const String& value)
|
|
684
|
-
{
|
|
685
|
-
static_assert(!(STATE & HashAlgorithmSet), "property hashAlgorithm should not be set yet");
|
|
686
|
-
m_result->setHashAlgorithm(value);
|
|
687
|
-
return castState<HashAlgorithmSet>();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
SignedCertificateTimestampBuilder<STATE | SignatureAlgorithmSet>& setSignatureAlgorithm(const String& value)
|
|
691
|
-
{
|
|
692
|
-
static_assert(!(STATE & SignatureAlgorithmSet), "property signatureAlgorithm should not be set yet");
|
|
693
|
-
m_result->setSignatureAlgorithm(value);
|
|
694
|
-
return castState<SignatureAlgorithmSet>();
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
SignedCertificateTimestampBuilder<STATE | SignatureDataSet>& setSignatureData(const String& value)
|
|
698
|
-
{
|
|
699
|
-
static_assert(!(STATE & SignatureDataSet), "property signatureData should not be set yet");
|
|
700
|
-
m_result->setSignatureData(value);
|
|
701
|
-
return castState<SignatureDataSet>();
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
std::unique_ptr<SignedCertificateTimestamp> build()
|
|
705
|
-
{
|
|
706
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
707
|
-
return std::move(m_result);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
private:
|
|
711
|
-
friend class SignedCertificateTimestamp;
|
|
712
|
-
SignedCertificateTimestampBuilder() : m_result(new SignedCertificateTimestamp()) { }
|
|
713
|
-
|
|
714
|
-
template<int STEP> SignedCertificateTimestampBuilder<STATE | STEP>& castState()
|
|
715
|
-
{
|
|
716
|
-
return *reinterpret_cast<SignedCertificateTimestampBuilder<STATE | STEP>*>(this);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
std::unique_ptr<protocol::Network::SignedCertificateTimestamp> m_result;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
static SignedCertificateTimestampBuilder<0> create()
|
|
723
|
-
{
|
|
724
|
-
return SignedCertificateTimestampBuilder<0>();
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
private:
|
|
728
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
729
|
-
|
|
730
|
-
SignedCertificateTimestamp()
|
|
731
|
-
{
|
|
732
|
-
m_timestamp = 0;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
String m_status;
|
|
736
|
-
String m_origin;
|
|
737
|
-
String m_logDescription;
|
|
738
|
-
String m_logId;
|
|
739
|
-
double m_timestamp;
|
|
740
|
-
String m_hashAlgorithm;
|
|
741
|
-
String m_signatureAlgorithm;
|
|
742
|
-
String m_signatureData;
|
|
743
|
-
};
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
class SecurityDetails : public ::v8_crdtp::ProtocolObject<SecurityDetails> {
|
|
747
|
-
public:
|
|
748
|
-
~SecurityDetails() override { }
|
|
749
|
-
|
|
750
|
-
String getProtocol() { return m_protocol; }
|
|
751
|
-
void setProtocol(const String& value) { m_protocol = value; }
|
|
752
|
-
|
|
753
|
-
String getKeyExchange() { return m_keyExchange; }
|
|
754
|
-
void setKeyExchange(const String& value) { m_keyExchange = value; }
|
|
755
|
-
|
|
756
|
-
bool hasKeyExchangeGroup() { return m_keyExchangeGroup.isJust(); }
|
|
757
|
-
String getKeyExchangeGroup(const String& defaultValue) { return m_keyExchangeGroup.isJust() ? m_keyExchangeGroup.fromJust() : defaultValue; }
|
|
758
|
-
void setKeyExchangeGroup(const String& value) { m_keyExchangeGroup = value; }
|
|
759
|
-
|
|
760
|
-
String getCipher() { return m_cipher; }
|
|
761
|
-
void setCipher(const String& value) { m_cipher = value; }
|
|
762
|
-
|
|
763
|
-
bool hasMac() { return m_mac.isJust(); }
|
|
764
|
-
String getMac(const String& defaultValue) { return m_mac.isJust() ? m_mac.fromJust() : defaultValue; }
|
|
765
|
-
void setMac(const String& value) { m_mac = value; }
|
|
766
|
-
|
|
767
|
-
int getCertificateId() { return m_certificateId; }
|
|
768
|
-
void setCertificateId(int value) { m_certificateId = value; }
|
|
769
|
-
|
|
770
|
-
String getSubjectName() { return m_subjectName; }
|
|
771
|
-
void setSubjectName(const String& value) { m_subjectName = value; }
|
|
772
|
-
|
|
773
|
-
protocol::Array<String>* getSanList() { return m_sanList.get(); }
|
|
774
|
-
void setSanList(std::unique_ptr<protocol::Array<String>> value) { m_sanList = std::move(value); }
|
|
775
|
-
|
|
776
|
-
String getIssuer() { return m_issuer; }
|
|
777
|
-
void setIssuer(const String& value) { m_issuer = value; }
|
|
778
|
-
|
|
779
|
-
double getValidFrom() { return m_validFrom; }
|
|
780
|
-
void setValidFrom(double value) { m_validFrom = value; }
|
|
781
|
-
|
|
782
|
-
double getValidTo() { return m_validTo; }
|
|
783
|
-
void setValidTo(double value) { m_validTo = value; }
|
|
784
|
-
|
|
785
|
-
protocol::Array<protocol::Network::SignedCertificateTimestamp>* getSignedCertificateTimestampList() { return m_signedCertificateTimestampList.get(); }
|
|
786
|
-
void setSignedCertificateTimestampList(std::unique_ptr<protocol::Array<protocol::Network::SignedCertificateTimestamp>> value) { m_signedCertificateTimestampList = std::move(value); }
|
|
787
|
-
|
|
788
|
-
String getCertificateTransparencyCompliance() { return m_certificateTransparencyCompliance; }
|
|
789
|
-
void setCertificateTransparencyCompliance(const String& value) { m_certificateTransparencyCompliance = value; }
|
|
790
|
-
|
|
791
|
-
template<int STATE>
|
|
792
|
-
class SecurityDetailsBuilder {
|
|
793
|
-
public:
|
|
794
|
-
enum {
|
|
795
|
-
NoFieldsSet = 0,
|
|
796
|
-
ProtocolSet = 1 << 1,
|
|
797
|
-
KeyExchangeSet = 1 << 2,
|
|
798
|
-
CipherSet = 1 << 3,
|
|
799
|
-
CertificateIdSet = 1 << 4,
|
|
800
|
-
SubjectNameSet = 1 << 5,
|
|
801
|
-
SanListSet = 1 << 6,
|
|
802
|
-
IssuerSet = 1 << 7,
|
|
803
|
-
ValidFromSet = 1 << 8,
|
|
804
|
-
ValidToSet = 1 << 9,
|
|
805
|
-
SignedCertificateTimestampListSet = 1 << 10,
|
|
806
|
-
CertificateTransparencyComplianceSet = 1 << 11,
|
|
807
|
-
AllFieldsSet = (ProtocolSet | KeyExchangeSet | CipherSet | CertificateIdSet | SubjectNameSet | SanListSet | IssuerSet | ValidFromSet | ValidToSet | SignedCertificateTimestampListSet | CertificateTransparencyComplianceSet | 0)};
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
SecurityDetailsBuilder<STATE | ProtocolSet>& setProtocol(const String& value)
|
|
811
|
-
{
|
|
812
|
-
static_assert(!(STATE & ProtocolSet), "property protocol should not be set yet");
|
|
813
|
-
m_result->setProtocol(value);
|
|
814
|
-
return castState<ProtocolSet>();
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
SecurityDetailsBuilder<STATE | KeyExchangeSet>& setKeyExchange(const String& value)
|
|
818
|
-
{
|
|
819
|
-
static_assert(!(STATE & KeyExchangeSet), "property keyExchange should not be set yet");
|
|
820
|
-
m_result->setKeyExchange(value);
|
|
821
|
-
return castState<KeyExchangeSet>();
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
SecurityDetailsBuilder<STATE>& setKeyExchangeGroup(const String& value)
|
|
825
|
-
{
|
|
826
|
-
m_result->setKeyExchangeGroup(value);
|
|
827
|
-
return *this;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
SecurityDetailsBuilder<STATE | CipherSet>& setCipher(const String& value)
|
|
831
|
-
{
|
|
832
|
-
static_assert(!(STATE & CipherSet), "property cipher should not be set yet");
|
|
833
|
-
m_result->setCipher(value);
|
|
834
|
-
return castState<CipherSet>();
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
SecurityDetailsBuilder<STATE>& setMac(const String& value)
|
|
838
|
-
{
|
|
839
|
-
m_result->setMac(value);
|
|
840
|
-
return *this;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
SecurityDetailsBuilder<STATE | CertificateIdSet>& setCertificateId(int value)
|
|
844
|
-
{
|
|
845
|
-
static_assert(!(STATE & CertificateIdSet), "property certificateId should not be set yet");
|
|
846
|
-
m_result->setCertificateId(value);
|
|
847
|
-
return castState<CertificateIdSet>();
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
SecurityDetailsBuilder<STATE | SubjectNameSet>& setSubjectName(const String& value)
|
|
851
|
-
{
|
|
852
|
-
static_assert(!(STATE & SubjectNameSet), "property subjectName should not be set yet");
|
|
853
|
-
m_result->setSubjectName(value);
|
|
854
|
-
return castState<SubjectNameSet>();
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
SecurityDetailsBuilder<STATE | SanListSet>& setSanList(std::unique_ptr<protocol::Array<String>> value)
|
|
858
|
-
{
|
|
859
|
-
static_assert(!(STATE & SanListSet), "property sanList should not be set yet");
|
|
860
|
-
m_result->setSanList(std::move(value));
|
|
861
|
-
return castState<SanListSet>();
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
SecurityDetailsBuilder<STATE | IssuerSet>& setIssuer(const String& value)
|
|
865
|
-
{
|
|
866
|
-
static_assert(!(STATE & IssuerSet), "property issuer should not be set yet");
|
|
867
|
-
m_result->setIssuer(value);
|
|
868
|
-
return castState<IssuerSet>();
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
SecurityDetailsBuilder<STATE | ValidFromSet>& setValidFrom(double value)
|
|
872
|
-
{
|
|
873
|
-
static_assert(!(STATE & ValidFromSet), "property validFrom should not be set yet");
|
|
874
|
-
m_result->setValidFrom(value);
|
|
875
|
-
return castState<ValidFromSet>();
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
SecurityDetailsBuilder<STATE | ValidToSet>& setValidTo(double value)
|
|
879
|
-
{
|
|
880
|
-
static_assert(!(STATE & ValidToSet), "property validTo should not be set yet");
|
|
881
|
-
m_result->setValidTo(value);
|
|
882
|
-
return castState<ValidToSet>();
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
SecurityDetailsBuilder<STATE | SignedCertificateTimestampListSet>& setSignedCertificateTimestampList(std::unique_ptr<protocol::Array<protocol::Network::SignedCertificateTimestamp>> value)
|
|
886
|
-
{
|
|
887
|
-
static_assert(!(STATE & SignedCertificateTimestampListSet), "property signedCertificateTimestampList should not be set yet");
|
|
888
|
-
m_result->setSignedCertificateTimestampList(std::move(value));
|
|
889
|
-
return castState<SignedCertificateTimestampListSet>();
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
SecurityDetailsBuilder<STATE | CertificateTransparencyComplianceSet>& setCertificateTransparencyCompliance(const String& value)
|
|
893
|
-
{
|
|
894
|
-
static_assert(!(STATE & CertificateTransparencyComplianceSet), "property certificateTransparencyCompliance should not be set yet");
|
|
895
|
-
m_result->setCertificateTransparencyCompliance(value);
|
|
896
|
-
return castState<CertificateTransparencyComplianceSet>();
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
std::unique_ptr<SecurityDetails> build()
|
|
900
|
-
{
|
|
901
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
902
|
-
return std::move(m_result);
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
private:
|
|
906
|
-
friend class SecurityDetails;
|
|
907
|
-
SecurityDetailsBuilder() : m_result(new SecurityDetails()) { }
|
|
908
|
-
|
|
909
|
-
template<int STEP> SecurityDetailsBuilder<STATE | STEP>& castState()
|
|
910
|
-
{
|
|
911
|
-
return *reinterpret_cast<SecurityDetailsBuilder<STATE | STEP>*>(this);
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
std::unique_ptr<protocol::Network::SecurityDetails> m_result;
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
static SecurityDetailsBuilder<0> create()
|
|
918
|
-
{
|
|
919
|
-
return SecurityDetailsBuilder<0>();
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
private:
|
|
923
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
924
|
-
|
|
925
|
-
SecurityDetails()
|
|
926
|
-
{
|
|
927
|
-
m_certificateId = 0;
|
|
928
|
-
m_validFrom = 0;
|
|
929
|
-
m_validTo = 0;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
String m_protocol;
|
|
933
|
-
String m_keyExchange;
|
|
934
|
-
Maybe<String> m_keyExchangeGroup;
|
|
935
|
-
String m_cipher;
|
|
936
|
-
Maybe<String> m_mac;
|
|
937
|
-
int m_certificateId;
|
|
938
|
-
String m_subjectName;
|
|
939
|
-
std::unique_ptr<protocol::Array<String>> m_sanList;
|
|
940
|
-
String m_issuer;
|
|
941
|
-
double m_validFrom;
|
|
942
|
-
double m_validTo;
|
|
943
|
-
std::unique_ptr<protocol::Array<protocol::Network::SignedCertificateTimestamp>> m_signedCertificateTimestampList;
|
|
944
|
-
String m_certificateTransparencyCompliance;
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
class Response : public ::v8_crdtp::ProtocolObject<Response> {
|
|
949
|
-
public:
|
|
950
|
-
~Response() override { }
|
|
951
|
-
|
|
952
|
-
String getUrl() { return m_url; }
|
|
953
|
-
void setUrl(const String& value) { m_url = value; }
|
|
954
|
-
|
|
955
|
-
int getStatus() { return m_status; }
|
|
956
|
-
void setStatus(int value) { m_status = value; }
|
|
957
|
-
|
|
958
|
-
String getStatusText() { return m_statusText; }
|
|
959
|
-
void setStatusText(const String& value) { m_statusText = value; }
|
|
960
|
-
|
|
961
|
-
protocol::Network::Headers* getHeaders() { return m_headers.get(); }
|
|
962
|
-
void setHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_headers = std::move(value); }
|
|
963
|
-
|
|
964
|
-
bool hasHeadersText() { return m_headersText.isJust(); }
|
|
965
|
-
String getHeadersText(const String& defaultValue) { return m_headersText.isJust() ? m_headersText.fromJust() : defaultValue; }
|
|
966
|
-
void setHeadersText(const String& value) { m_headersText = value; }
|
|
967
|
-
|
|
968
|
-
String getMimeType() { return m_mimeType; }
|
|
969
|
-
void setMimeType(const String& value) { m_mimeType = value; }
|
|
970
|
-
|
|
971
|
-
bool hasRequestHeaders() { return m_requestHeaders.isJust(); }
|
|
972
|
-
protocol::Network::Headers* getRequestHeaders(protocol::Network::Headers* defaultValue) { return m_requestHeaders.isJust() ? m_requestHeaders.fromJust() : defaultValue; }
|
|
973
|
-
void setRequestHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_requestHeaders = std::move(value); }
|
|
974
|
-
|
|
975
|
-
bool hasRequestHeadersText() { return m_requestHeadersText.isJust(); }
|
|
976
|
-
String getRequestHeadersText(const String& defaultValue) { return m_requestHeadersText.isJust() ? m_requestHeadersText.fromJust() : defaultValue; }
|
|
977
|
-
void setRequestHeadersText(const String& value) { m_requestHeadersText = value; }
|
|
978
|
-
|
|
979
|
-
bool getConnectionReused() { return m_connectionReused; }
|
|
980
|
-
void setConnectionReused(bool value) { m_connectionReused = value; }
|
|
981
|
-
|
|
982
|
-
double getConnectionId() { return m_connectionId; }
|
|
983
|
-
void setConnectionId(double value) { m_connectionId = value; }
|
|
984
|
-
|
|
985
|
-
bool hasRemoteIPAddress() { return m_remoteIPAddress.isJust(); }
|
|
986
|
-
String getRemoteIPAddress(const String& defaultValue) { return m_remoteIPAddress.isJust() ? m_remoteIPAddress.fromJust() : defaultValue; }
|
|
987
|
-
void setRemoteIPAddress(const String& value) { m_remoteIPAddress = value; }
|
|
988
|
-
|
|
989
|
-
bool hasRemotePort() { return m_remotePort.isJust(); }
|
|
990
|
-
int getRemotePort(int defaultValue) { return m_remotePort.isJust() ? m_remotePort.fromJust() : defaultValue; }
|
|
991
|
-
void setRemotePort(int value) { m_remotePort = value; }
|
|
992
|
-
|
|
993
|
-
bool hasFromDiskCache() { return m_fromDiskCache.isJust(); }
|
|
994
|
-
bool getFromDiskCache(bool defaultValue) { return m_fromDiskCache.isJust() ? m_fromDiskCache.fromJust() : defaultValue; }
|
|
995
|
-
void setFromDiskCache(bool value) { m_fromDiskCache = value; }
|
|
996
|
-
|
|
997
|
-
bool hasFromServiceWorker() { return m_fromServiceWorker.isJust(); }
|
|
998
|
-
bool getFromServiceWorker(bool defaultValue) { return m_fromServiceWorker.isJust() ? m_fromServiceWorker.fromJust() : defaultValue; }
|
|
999
|
-
void setFromServiceWorker(bool value) { m_fromServiceWorker = value; }
|
|
1000
|
-
|
|
1001
|
-
bool hasFromPrefetchCache() { return m_fromPrefetchCache.isJust(); }
|
|
1002
|
-
bool getFromPrefetchCache(bool defaultValue) { return m_fromPrefetchCache.isJust() ? m_fromPrefetchCache.fromJust() : defaultValue; }
|
|
1003
|
-
void setFromPrefetchCache(bool value) { m_fromPrefetchCache = value; }
|
|
1004
|
-
|
|
1005
|
-
double getEncodedDataLength() { return m_encodedDataLength; }
|
|
1006
|
-
void setEncodedDataLength(double value) { m_encodedDataLength = value; }
|
|
1007
|
-
|
|
1008
|
-
bool hasTiming() { return m_timing.isJust(); }
|
|
1009
|
-
protocol::Network::ResourceTiming* getTiming(protocol::Network::ResourceTiming* defaultValue) { return m_timing.isJust() ? m_timing.fromJust() : defaultValue; }
|
|
1010
|
-
void setTiming(std::unique_ptr<protocol::Network::ResourceTiming> value) { m_timing = std::move(value); }
|
|
1011
|
-
|
|
1012
|
-
bool hasProtocol() { return m_protocol.isJust(); }
|
|
1013
|
-
String getProtocol(const String& defaultValue) { return m_protocol.isJust() ? m_protocol.fromJust() : defaultValue; }
|
|
1014
|
-
void setProtocol(const String& value) { m_protocol = value; }
|
|
1015
|
-
|
|
1016
|
-
String getSecurityState() { return m_securityState; }
|
|
1017
|
-
void setSecurityState(const String& value) { m_securityState = value; }
|
|
1018
|
-
|
|
1019
|
-
bool hasSecurityDetails() { return m_securityDetails.isJust(); }
|
|
1020
|
-
protocol::Network::SecurityDetails* getSecurityDetails(protocol::Network::SecurityDetails* defaultValue) { return m_securityDetails.isJust() ? m_securityDetails.fromJust() : defaultValue; }
|
|
1021
|
-
void setSecurityDetails(std::unique_ptr<protocol::Network::SecurityDetails> value) { m_securityDetails = std::move(value); }
|
|
1022
|
-
|
|
1023
|
-
template<int STATE>
|
|
1024
|
-
class ResponseBuilder {
|
|
1025
|
-
public:
|
|
1026
|
-
enum {
|
|
1027
|
-
NoFieldsSet = 0,
|
|
1028
|
-
UrlSet = 1 << 1,
|
|
1029
|
-
StatusSet = 1 << 2,
|
|
1030
|
-
StatusTextSet = 1 << 3,
|
|
1031
|
-
HeadersSet = 1 << 4,
|
|
1032
|
-
MimeTypeSet = 1 << 5,
|
|
1033
|
-
ConnectionReusedSet = 1 << 6,
|
|
1034
|
-
ConnectionIdSet = 1 << 7,
|
|
1035
|
-
EncodedDataLengthSet = 1 << 8,
|
|
1036
|
-
SecurityStateSet = 1 << 9,
|
|
1037
|
-
AllFieldsSet = (UrlSet | StatusSet | StatusTextSet | HeadersSet | MimeTypeSet | ConnectionReusedSet | ConnectionIdSet | EncodedDataLengthSet | SecurityStateSet | 0)};
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
ResponseBuilder<STATE | UrlSet>& setUrl(const String& value)
|
|
1041
|
-
{
|
|
1042
|
-
static_assert(!(STATE & UrlSet), "property url should not be set yet");
|
|
1043
|
-
m_result->setUrl(value);
|
|
1044
|
-
return castState<UrlSet>();
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
ResponseBuilder<STATE | StatusSet>& setStatus(int value)
|
|
1048
|
-
{
|
|
1049
|
-
static_assert(!(STATE & StatusSet), "property status should not be set yet");
|
|
1050
|
-
m_result->setStatus(value);
|
|
1051
|
-
return castState<StatusSet>();
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
ResponseBuilder<STATE | StatusTextSet>& setStatusText(const String& value)
|
|
1055
|
-
{
|
|
1056
|
-
static_assert(!(STATE & StatusTextSet), "property statusText should not be set yet");
|
|
1057
|
-
m_result->setStatusText(value);
|
|
1058
|
-
return castState<StatusTextSet>();
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
ResponseBuilder<STATE | HeadersSet>& setHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
1062
|
-
{
|
|
1063
|
-
static_assert(!(STATE & HeadersSet), "property headers should not be set yet");
|
|
1064
|
-
m_result->setHeaders(std::move(value));
|
|
1065
|
-
return castState<HeadersSet>();
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
ResponseBuilder<STATE>& setHeadersText(const String& value)
|
|
1069
|
-
{
|
|
1070
|
-
m_result->setHeadersText(value);
|
|
1071
|
-
return *this;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
ResponseBuilder<STATE | MimeTypeSet>& setMimeType(const String& value)
|
|
1075
|
-
{
|
|
1076
|
-
static_assert(!(STATE & MimeTypeSet), "property mimeType should not be set yet");
|
|
1077
|
-
m_result->setMimeType(value);
|
|
1078
|
-
return castState<MimeTypeSet>();
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
ResponseBuilder<STATE>& setRequestHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
1082
|
-
{
|
|
1083
|
-
m_result->setRequestHeaders(std::move(value));
|
|
1084
|
-
return *this;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
ResponseBuilder<STATE>& setRequestHeadersText(const String& value)
|
|
1088
|
-
{
|
|
1089
|
-
m_result->setRequestHeadersText(value);
|
|
1090
|
-
return *this;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
ResponseBuilder<STATE | ConnectionReusedSet>& setConnectionReused(bool value)
|
|
1094
|
-
{
|
|
1095
|
-
static_assert(!(STATE & ConnectionReusedSet), "property connectionReused should not be set yet");
|
|
1096
|
-
m_result->setConnectionReused(value);
|
|
1097
|
-
return castState<ConnectionReusedSet>();
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
ResponseBuilder<STATE | ConnectionIdSet>& setConnectionId(double value)
|
|
1101
|
-
{
|
|
1102
|
-
static_assert(!(STATE & ConnectionIdSet), "property connectionId should not be set yet");
|
|
1103
|
-
m_result->setConnectionId(value);
|
|
1104
|
-
return castState<ConnectionIdSet>();
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
ResponseBuilder<STATE>& setRemoteIPAddress(const String& value)
|
|
1108
|
-
{
|
|
1109
|
-
m_result->setRemoteIPAddress(value);
|
|
1110
|
-
return *this;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
ResponseBuilder<STATE>& setRemotePort(int value)
|
|
1114
|
-
{
|
|
1115
|
-
m_result->setRemotePort(value);
|
|
1116
|
-
return *this;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
ResponseBuilder<STATE>& setFromDiskCache(bool value)
|
|
1120
|
-
{
|
|
1121
|
-
m_result->setFromDiskCache(value);
|
|
1122
|
-
return *this;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
ResponseBuilder<STATE>& setFromServiceWorker(bool value)
|
|
1126
|
-
{
|
|
1127
|
-
m_result->setFromServiceWorker(value);
|
|
1128
|
-
return *this;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
ResponseBuilder<STATE>& setFromPrefetchCache(bool value)
|
|
1132
|
-
{
|
|
1133
|
-
m_result->setFromPrefetchCache(value);
|
|
1134
|
-
return *this;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
ResponseBuilder<STATE | EncodedDataLengthSet>& setEncodedDataLength(double value)
|
|
1138
|
-
{
|
|
1139
|
-
static_assert(!(STATE & EncodedDataLengthSet), "property encodedDataLength should not be set yet");
|
|
1140
|
-
m_result->setEncodedDataLength(value);
|
|
1141
|
-
return castState<EncodedDataLengthSet>();
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
ResponseBuilder<STATE>& setTiming(std::unique_ptr<protocol::Network::ResourceTiming> value)
|
|
1145
|
-
{
|
|
1146
|
-
m_result->setTiming(std::move(value));
|
|
1147
|
-
return *this;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
ResponseBuilder<STATE>& setProtocol(const String& value)
|
|
1151
|
-
{
|
|
1152
|
-
m_result->setProtocol(value);
|
|
1153
|
-
return *this;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
ResponseBuilder<STATE | SecurityStateSet>& setSecurityState(const String& value)
|
|
1157
|
-
{
|
|
1158
|
-
static_assert(!(STATE & SecurityStateSet), "property securityState should not be set yet");
|
|
1159
|
-
m_result->setSecurityState(value);
|
|
1160
|
-
return castState<SecurityStateSet>();
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
ResponseBuilder<STATE>& setSecurityDetails(std::unique_ptr<protocol::Network::SecurityDetails> value)
|
|
1164
|
-
{
|
|
1165
|
-
m_result->setSecurityDetails(std::move(value));
|
|
1166
|
-
return *this;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
std::unique_ptr<Response> build()
|
|
1170
|
-
{
|
|
1171
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1172
|
-
return std::move(m_result);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
private:
|
|
1176
|
-
friend class Response;
|
|
1177
|
-
ResponseBuilder() : m_result(new Response()) { }
|
|
1178
|
-
|
|
1179
|
-
template<int STEP> ResponseBuilder<STATE | STEP>& castState()
|
|
1180
|
-
{
|
|
1181
|
-
return *reinterpret_cast<ResponseBuilder<STATE | STEP>*>(this);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
std::unique_ptr<protocol::Network::Response> m_result;
|
|
1185
|
-
};
|
|
1186
|
-
|
|
1187
|
-
static ResponseBuilder<0> create()
|
|
1188
|
-
{
|
|
1189
|
-
return ResponseBuilder<0>();
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
private:
|
|
1193
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1194
|
-
|
|
1195
|
-
Response()
|
|
1196
|
-
{
|
|
1197
|
-
m_status = 0;
|
|
1198
|
-
m_connectionReused = false;
|
|
1199
|
-
m_connectionId = 0;
|
|
1200
|
-
m_encodedDataLength = 0;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
String m_url;
|
|
1204
|
-
int m_status;
|
|
1205
|
-
String m_statusText;
|
|
1206
|
-
std::unique_ptr<protocol::Network::Headers> m_headers;
|
|
1207
|
-
Maybe<String> m_headersText;
|
|
1208
|
-
String m_mimeType;
|
|
1209
|
-
Maybe<protocol::Network::Headers> m_requestHeaders;
|
|
1210
|
-
Maybe<String> m_requestHeadersText;
|
|
1211
|
-
bool m_connectionReused;
|
|
1212
|
-
double m_connectionId;
|
|
1213
|
-
Maybe<String> m_remoteIPAddress;
|
|
1214
|
-
Maybe<int> m_remotePort;
|
|
1215
|
-
Maybe<bool> m_fromDiskCache;
|
|
1216
|
-
Maybe<bool> m_fromServiceWorker;
|
|
1217
|
-
Maybe<bool> m_fromPrefetchCache;
|
|
1218
|
-
double m_encodedDataLength;
|
|
1219
|
-
Maybe<protocol::Network::ResourceTiming> m_timing;
|
|
1220
|
-
Maybe<String> m_protocol;
|
|
1221
|
-
String m_securityState;
|
|
1222
|
-
Maybe<protocol::Network::SecurityDetails> m_securityDetails;
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
class WebSocketRequest : public ::v8_crdtp::ProtocolObject<WebSocketRequest> {
|
|
1227
|
-
public:
|
|
1228
|
-
~WebSocketRequest() override { }
|
|
1229
|
-
|
|
1230
|
-
protocol::Network::Headers* getHeaders() { return m_headers.get(); }
|
|
1231
|
-
void setHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_headers = std::move(value); }
|
|
1232
|
-
|
|
1233
|
-
template<int STATE>
|
|
1234
|
-
class WebSocketRequestBuilder {
|
|
1235
|
-
public:
|
|
1236
|
-
enum {
|
|
1237
|
-
NoFieldsSet = 0,
|
|
1238
|
-
HeadersSet = 1 << 1,
|
|
1239
|
-
AllFieldsSet = (HeadersSet | 0)};
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
WebSocketRequestBuilder<STATE | HeadersSet>& setHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
1243
|
-
{
|
|
1244
|
-
static_assert(!(STATE & HeadersSet), "property headers should not be set yet");
|
|
1245
|
-
m_result->setHeaders(std::move(value));
|
|
1246
|
-
return castState<HeadersSet>();
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
std::unique_ptr<WebSocketRequest> build()
|
|
1250
|
-
{
|
|
1251
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1252
|
-
return std::move(m_result);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
private:
|
|
1256
|
-
friend class WebSocketRequest;
|
|
1257
|
-
WebSocketRequestBuilder() : m_result(new WebSocketRequest()) { }
|
|
1258
|
-
|
|
1259
|
-
template<int STEP> WebSocketRequestBuilder<STATE | STEP>& castState()
|
|
1260
|
-
{
|
|
1261
|
-
return *reinterpret_cast<WebSocketRequestBuilder<STATE | STEP>*>(this);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
std::unique_ptr<protocol::Network::WebSocketRequest> m_result;
|
|
1265
|
-
};
|
|
1266
|
-
|
|
1267
|
-
static WebSocketRequestBuilder<0> create()
|
|
1268
|
-
{
|
|
1269
|
-
return WebSocketRequestBuilder<0>();
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
private:
|
|
1273
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1274
|
-
|
|
1275
|
-
WebSocketRequest()
|
|
1276
|
-
{
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
std::unique_ptr<protocol::Network::Headers> m_headers;
|
|
1280
|
-
};
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
class WebSocketResponse : public ::v8_crdtp::ProtocolObject<WebSocketResponse> {
|
|
1284
|
-
public:
|
|
1285
|
-
~WebSocketResponse() override { }
|
|
1286
|
-
|
|
1287
|
-
int getStatus() { return m_status; }
|
|
1288
|
-
void setStatus(int value) { m_status = value; }
|
|
1289
|
-
|
|
1290
|
-
String getStatusText() { return m_statusText; }
|
|
1291
|
-
void setStatusText(const String& value) { m_statusText = value; }
|
|
1292
|
-
|
|
1293
|
-
protocol::Network::Headers* getHeaders() { return m_headers.get(); }
|
|
1294
|
-
void setHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_headers = std::move(value); }
|
|
1295
|
-
|
|
1296
|
-
bool hasHeadersText() { return m_headersText.isJust(); }
|
|
1297
|
-
String getHeadersText(const String& defaultValue) { return m_headersText.isJust() ? m_headersText.fromJust() : defaultValue; }
|
|
1298
|
-
void setHeadersText(const String& value) { m_headersText = value; }
|
|
1299
|
-
|
|
1300
|
-
bool hasRequestHeaders() { return m_requestHeaders.isJust(); }
|
|
1301
|
-
protocol::Network::Headers* getRequestHeaders(protocol::Network::Headers* defaultValue) { return m_requestHeaders.isJust() ? m_requestHeaders.fromJust() : defaultValue; }
|
|
1302
|
-
void setRequestHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_requestHeaders = std::move(value); }
|
|
1303
|
-
|
|
1304
|
-
bool hasRequestHeadersText() { return m_requestHeadersText.isJust(); }
|
|
1305
|
-
String getRequestHeadersText(const String& defaultValue) { return m_requestHeadersText.isJust() ? m_requestHeadersText.fromJust() : defaultValue; }
|
|
1306
|
-
void setRequestHeadersText(const String& value) { m_requestHeadersText = value; }
|
|
1307
|
-
|
|
1308
|
-
template<int STATE>
|
|
1309
|
-
class WebSocketResponseBuilder {
|
|
1310
|
-
public:
|
|
1311
|
-
enum {
|
|
1312
|
-
NoFieldsSet = 0,
|
|
1313
|
-
StatusSet = 1 << 1,
|
|
1314
|
-
StatusTextSet = 1 << 2,
|
|
1315
|
-
HeadersSet = 1 << 3,
|
|
1316
|
-
AllFieldsSet = (StatusSet | StatusTextSet | HeadersSet | 0)};
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
WebSocketResponseBuilder<STATE | StatusSet>& setStatus(int value)
|
|
1320
|
-
{
|
|
1321
|
-
static_assert(!(STATE & StatusSet), "property status should not be set yet");
|
|
1322
|
-
m_result->setStatus(value);
|
|
1323
|
-
return castState<StatusSet>();
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
WebSocketResponseBuilder<STATE | StatusTextSet>& setStatusText(const String& value)
|
|
1327
|
-
{
|
|
1328
|
-
static_assert(!(STATE & StatusTextSet), "property statusText should not be set yet");
|
|
1329
|
-
m_result->setStatusText(value);
|
|
1330
|
-
return castState<StatusTextSet>();
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
WebSocketResponseBuilder<STATE | HeadersSet>& setHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
1334
|
-
{
|
|
1335
|
-
static_assert(!(STATE & HeadersSet), "property headers should not be set yet");
|
|
1336
|
-
m_result->setHeaders(std::move(value));
|
|
1337
|
-
return castState<HeadersSet>();
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
WebSocketResponseBuilder<STATE>& setHeadersText(const String& value)
|
|
1341
|
-
{
|
|
1342
|
-
m_result->setHeadersText(value);
|
|
1343
|
-
return *this;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
WebSocketResponseBuilder<STATE>& setRequestHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
1347
|
-
{
|
|
1348
|
-
m_result->setRequestHeaders(std::move(value));
|
|
1349
|
-
return *this;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
WebSocketResponseBuilder<STATE>& setRequestHeadersText(const String& value)
|
|
1353
|
-
{
|
|
1354
|
-
m_result->setRequestHeadersText(value);
|
|
1355
|
-
return *this;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
std::unique_ptr<WebSocketResponse> build()
|
|
1359
|
-
{
|
|
1360
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1361
|
-
return std::move(m_result);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
private:
|
|
1365
|
-
friend class WebSocketResponse;
|
|
1366
|
-
WebSocketResponseBuilder() : m_result(new WebSocketResponse()) { }
|
|
1367
|
-
|
|
1368
|
-
template<int STEP> WebSocketResponseBuilder<STATE | STEP>& castState()
|
|
1369
|
-
{
|
|
1370
|
-
return *reinterpret_cast<WebSocketResponseBuilder<STATE | STEP>*>(this);
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
std::unique_ptr<protocol::Network::WebSocketResponse> m_result;
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
static WebSocketResponseBuilder<0> create()
|
|
1377
|
-
{
|
|
1378
|
-
return WebSocketResponseBuilder<0>();
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
private:
|
|
1382
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1383
|
-
|
|
1384
|
-
WebSocketResponse()
|
|
1385
|
-
{
|
|
1386
|
-
m_status = 0;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
int m_status;
|
|
1390
|
-
String m_statusText;
|
|
1391
|
-
std::unique_ptr<protocol::Network::Headers> m_headers;
|
|
1392
|
-
Maybe<String> m_headersText;
|
|
1393
|
-
Maybe<protocol::Network::Headers> m_requestHeaders;
|
|
1394
|
-
Maybe<String> m_requestHeadersText;
|
|
1395
|
-
};
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
class WebSocketFrame : public ::v8_crdtp::ProtocolObject<WebSocketFrame> {
|
|
1399
|
-
public:
|
|
1400
|
-
~WebSocketFrame() override { }
|
|
1401
|
-
|
|
1402
|
-
double getOpcode() { return m_opcode; }
|
|
1403
|
-
void setOpcode(double value) { m_opcode = value; }
|
|
1404
|
-
|
|
1405
|
-
bool getMask() { return m_mask; }
|
|
1406
|
-
void setMask(bool value) { m_mask = value; }
|
|
1407
|
-
|
|
1408
|
-
String getPayloadData() { return m_payloadData; }
|
|
1409
|
-
void setPayloadData(const String& value) { m_payloadData = value; }
|
|
1410
|
-
|
|
1411
|
-
template<int STATE>
|
|
1412
|
-
class WebSocketFrameBuilder {
|
|
1413
|
-
public:
|
|
1414
|
-
enum {
|
|
1415
|
-
NoFieldsSet = 0,
|
|
1416
|
-
OpcodeSet = 1 << 1,
|
|
1417
|
-
MaskSet = 1 << 2,
|
|
1418
|
-
PayloadDataSet = 1 << 3,
|
|
1419
|
-
AllFieldsSet = (OpcodeSet | MaskSet | PayloadDataSet | 0)};
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
WebSocketFrameBuilder<STATE | OpcodeSet>& setOpcode(double value)
|
|
1423
|
-
{
|
|
1424
|
-
static_assert(!(STATE & OpcodeSet), "property opcode should not be set yet");
|
|
1425
|
-
m_result->setOpcode(value);
|
|
1426
|
-
return castState<OpcodeSet>();
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
WebSocketFrameBuilder<STATE | MaskSet>& setMask(bool value)
|
|
1430
|
-
{
|
|
1431
|
-
static_assert(!(STATE & MaskSet), "property mask should not be set yet");
|
|
1432
|
-
m_result->setMask(value);
|
|
1433
|
-
return castState<MaskSet>();
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
WebSocketFrameBuilder<STATE | PayloadDataSet>& setPayloadData(const String& value)
|
|
1437
|
-
{
|
|
1438
|
-
static_assert(!(STATE & PayloadDataSet), "property payloadData should not be set yet");
|
|
1439
|
-
m_result->setPayloadData(value);
|
|
1440
|
-
return castState<PayloadDataSet>();
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
std::unique_ptr<WebSocketFrame> build()
|
|
1444
|
-
{
|
|
1445
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1446
|
-
return std::move(m_result);
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
private:
|
|
1450
|
-
friend class WebSocketFrame;
|
|
1451
|
-
WebSocketFrameBuilder() : m_result(new WebSocketFrame()) { }
|
|
1452
|
-
|
|
1453
|
-
template<int STEP> WebSocketFrameBuilder<STATE | STEP>& castState()
|
|
1454
|
-
{
|
|
1455
|
-
return *reinterpret_cast<WebSocketFrameBuilder<STATE | STEP>*>(this);
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
std::unique_ptr<protocol::Network::WebSocketFrame> m_result;
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
static WebSocketFrameBuilder<0> create()
|
|
1462
|
-
{
|
|
1463
|
-
return WebSocketFrameBuilder<0>();
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
private:
|
|
1467
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1468
|
-
|
|
1469
|
-
WebSocketFrame()
|
|
1470
|
-
{
|
|
1471
|
-
m_opcode = 0;
|
|
1472
|
-
m_mask = false;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
double m_opcode;
|
|
1476
|
-
bool m_mask;
|
|
1477
|
-
String m_payloadData;
|
|
1478
|
-
};
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
class Initiator : public ::v8_crdtp::ProtocolObject<Initiator> {
|
|
1482
|
-
public:
|
|
1483
|
-
~Initiator() override { }
|
|
1484
|
-
|
|
1485
|
-
struct TypeEnum {
|
|
1486
|
-
static const char* Parser;
|
|
1487
|
-
static const char* Script;
|
|
1488
|
-
static const char* Preload;
|
|
1489
|
-
static const char* SignedExchange;
|
|
1490
|
-
static const char* Other;
|
|
1491
|
-
}; // TypeEnum
|
|
1492
|
-
|
|
1493
|
-
String getType() { return m_type; }
|
|
1494
|
-
void setType(const String& value) { m_type = value; }
|
|
1495
|
-
|
|
1496
|
-
bool hasStack() { return m_stack.isJust(); }
|
|
1497
|
-
protocol::Runtime::StackTrace* getStack(protocol::Runtime::StackTrace* defaultValue) { return m_stack.isJust() ? m_stack.fromJust() : defaultValue; }
|
|
1498
|
-
void setStack(std::unique_ptr<protocol::Runtime::StackTrace> value) { m_stack = std::move(value); }
|
|
1499
|
-
|
|
1500
|
-
bool hasUrl() { return m_url.isJust(); }
|
|
1501
|
-
String getUrl(const String& defaultValue) { return m_url.isJust() ? m_url.fromJust() : defaultValue; }
|
|
1502
|
-
void setUrl(const String& value) { m_url = value; }
|
|
1503
|
-
|
|
1504
|
-
bool hasLineNumber() { return m_lineNumber.isJust(); }
|
|
1505
|
-
double getLineNumber(double defaultValue) { return m_lineNumber.isJust() ? m_lineNumber.fromJust() : defaultValue; }
|
|
1506
|
-
void setLineNumber(double value) { m_lineNumber = value; }
|
|
1507
|
-
|
|
1508
|
-
template<int STATE>
|
|
1509
|
-
class InitiatorBuilder {
|
|
1510
|
-
public:
|
|
1511
|
-
enum {
|
|
1512
|
-
NoFieldsSet = 0,
|
|
1513
|
-
TypeSet = 1 << 1,
|
|
1514
|
-
AllFieldsSet = (TypeSet | 0)};
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
InitiatorBuilder<STATE | TypeSet>& setType(const String& value)
|
|
1518
|
-
{
|
|
1519
|
-
static_assert(!(STATE & TypeSet), "property type should not be set yet");
|
|
1520
|
-
m_result->setType(value);
|
|
1521
|
-
return castState<TypeSet>();
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
InitiatorBuilder<STATE>& setStack(std::unique_ptr<protocol::Runtime::StackTrace> value)
|
|
1525
|
-
{
|
|
1526
|
-
m_result->setStack(std::move(value));
|
|
1527
|
-
return *this;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
InitiatorBuilder<STATE>& setUrl(const String& value)
|
|
1531
|
-
{
|
|
1532
|
-
m_result->setUrl(value);
|
|
1533
|
-
return *this;
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
InitiatorBuilder<STATE>& setLineNumber(double value)
|
|
1537
|
-
{
|
|
1538
|
-
m_result->setLineNumber(value);
|
|
1539
|
-
return *this;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
std::unique_ptr<Initiator> build()
|
|
1543
|
-
{
|
|
1544
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1545
|
-
return std::move(m_result);
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
private:
|
|
1549
|
-
friend class Initiator;
|
|
1550
|
-
InitiatorBuilder() : m_result(new Initiator()) { }
|
|
1551
|
-
|
|
1552
|
-
template<int STEP> InitiatorBuilder<STATE | STEP>& castState()
|
|
1553
|
-
{
|
|
1554
|
-
return *reinterpret_cast<InitiatorBuilder<STATE | STEP>*>(this);
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
std::unique_ptr<protocol::Network::Initiator> m_result;
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
|
-
static InitiatorBuilder<0> create()
|
|
1561
|
-
{
|
|
1562
|
-
return InitiatorBuilder<0>();
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
private:
|
|
1566
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1567
|
-
|
|
1568
|
-
Initiator()
|
|
1569
|
-
{
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
String m_type;
|
|
1573
|
-
Maybe<protocol::Runtime::StackTrace> m_stack;
|
|
1574
|
-
Maybe<String> m_url;
|
|
1575
|
-
Maybe<double> m_lineNumber;
|
|
1576
|
-
};
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
class Cookie : public ::v8_crdtp::ProtocolObject<Cookie> {
|
|
1580
|
-
public:
|
|
1581
|
-
~Cookie() override { }
|
|
1582
|
-
|
|
1583
|
-
String getName() { return m_name; }
|
|
1584
|
-
void setName(const String& value) { m_name = value; }
|
|
1585
|
-
|
|
1586
|
-
String getValue() { return m_value; }
|
|
1587
|
-
void setValue(const String& value) { m_value = value; }
|
|
1588
|
-
|
|
1589
|
-
String getDomain() { return m_domain; }
|
|
1590
|
-
void setDomain(const String& value) { m_domain = value; }
|
|
1591
|
-
|
|
1592
|
-
String getPath() { return m_path; }
|
|
1593
|
-
void setPath(const String& value) { m_path = value; }
|
|
1594
|
-
|
|
1595
|
-
double getExpires() { return m_expires; }
|
|
1596
|
-
void setExpires(double value) { m_expires = value; }
|
|
1597
|
-
|
|
1598
|
-
int getSize() { return m_size; }
|
|
1599
|
-
void setSize(int value) { m_size = value; }
|
|
1600
|
-
|
|
1601
|
-
bool getHttpOnly() { return m_httpOnly; }
|
|
1602
|
-
void setHttpOnly(bool value) { m_httpOnly = value; }
|
|
1603
|
-
|
|
1604
|
-
bool getSecure() { return m_secure; }
|
|
1605
|
-
void setSecure(bool value) { m_secure = value; }
|
|
1606
|
-
|
|
1607
|
-
bool getSession() { return m_session; }
|
|
1608
|
-
void setSession(bool value) { m_session = value; }
|
|
1609
|
-
|
|
1610
|
-
bool hasSameSite() { return m_sameSite.isJust(); }
|
|
1611
|
-
String getSameSite(const String& defaultValue) { return m_sameSite.isJust() ? m_sameSite.fromJust() : defaultValue; }
|
|
1612
|
-
void setSameSite(const String& value) { m_sameSite = value; }
|
|
1613
|
-
|
|
1614
|
-
String getPriority() { return m_priority; }
|
|
1615
|
-
void setPriority(const String& value) { m_priority = value; }
|
|
1616
|
-
|
|
1617
|
-
template<int STATE>
|
|
1618
|
-
class CookieBuilder {
|
|
1619
|
-
public:
|
|
1620
|
-
enum {
|
|
1621
|
-
NoFieldsSet = 0,
|
|
1622
|
-
NameSet = 1 << 1,
|
|
1623
|
-
ValueSet = 1 << 2,
|
|
1624
|
-
DomainSet = 1 << 3,
|
|
1625
|
-
PathSet = 1 << 4,
|
|
1626
|
-
ExpiresSet = 1 << 5,
|
|
1627
|
-
SizeSet = 1 << 6,
|
|
1628
|
-
HttpOnlySet = 1 << 7,
|
|
1629
|
-
SecureSet = 1 << 8,
|
|
1630
|
-
SessionSet = 1 << 9,
|
|
1631
|
-
PrioritySet = 1 << 10,
|
|
1632
|
-
AllFieldsSet = (NameSet | ValueSet | DomainSet | PathSet | ExpiresSet | SizeSet | HttpOnlySet | SecureSet | SessionSet | PrioritySet | 0)};
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
CookieBuilder<STATE | NameSet>& setName(const String& value)
|
|
1636
|
-
{
|
|
1637
|
-
static_assert(!(STATE & NameSet), "property name should not be set yet");
|
|
1638
|
-
m_result->setName(value);
|
|
1639
|
-
return castState<NameSet>();
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
CookieBuilder<STATE | ValueSet>& setValue(const String& value)
|
|
1643
|
-
{
|
|
1644
|
-
static_assert(!(STATE & ValueSet), "property value should not be set yet");
|
|
1645
|
-
m_result->setValue(value);
|
|
1646
|
-
return castState<ValueSet>();
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
CookieBuilder<STATE | DomainSet>& setDomain(const String& value)
|
|
1650
|
-
{
|
|
1651
|
-
static_assert(!(STATE & DomainSet), "property domain should not be set yet");
|
|
1652
|
-
m_result->setDomain(value);
|
|
1653
|
-
return castState<DomainSet>();
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
CookieBuilder<STATE | PathSet>& setPath(const String& value)
|
|
1657
|
-
{
|
|
1658
|
-
static_assert(!(STATE & PathSet), "property path should not be set yet");
|
|
1659
|
-
m_result->setPath(value);
|
|
1660
|
-
return castState<PathSet>();
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
CookieBuilder<STATE | ExpiresSet>& setExpires(double value)
|
|
1664
|
-
{
|
|
1665
|
-
static_assert(!(STATE & ExpiresSet), "property expires should not be set yet");
|
|
1666
|
-
m_result->setExpires(value);
|
|
1667
|
-
return castState<ExpiresSet>();
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
CookieBuilder<STATE | SizeSet>& setSize(int value)
|
|
1671
|
-
{
|
|
1672
|
-
static_assert(!(STATE & SizeSet), "property size should not be set yet");
|
|
1673
|
-
m_result->setSize(value);
|
|
1674
|
-
return castState<SizeSet>();
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
CookieBuilder<STATE | HttpOnlySet>& setHttpOnly(bool value)
|
|
1678
|
-
{
|
|
1679
|
-
static_assert(!(STATE & HttpOnlySet), "property httpOnly should not be set yet");
|
|
1680
|
-
m_result->setHttpOnly(value);
|
|
1681
|
-
return castState<HttpOnlySet>();
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
CookieBuilder<STATE | SecureSet>& setSecure(bool value)
|
|
1685
|
-
{
|
|
1686
|
-
static_assert(!(STATE & SecureSet), "property secure should not be set yet");
|
|
1687
|
-
m_result->setSecure(value);
|
|
1688
|
-
return castState<SecureSet>();
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
CookieBuilder<STATE | SessionSet>& setSession(bool value)
|
|
1692
|
-
{
|
|
1693
|
-
static_assert(!(STATE & SessionSet), "property session should not be set yet");
|
|
1694
|
-
m_result->setSession(value);
|
|
1695
|
-
return castState<SessionSet>();
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
CookieBuilder<STATE>& setSameSite(const String& value)
|
|
1699
|
-
{
|
|
1700
|
-
m_result->setSameSite(value);
|
|
1701
|
-
return *this;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
CookieBuilder<STATE | PrioritySet>& setPriority(const String& value)
|
|
1705
|
-
{
|
|
1706
|
-
static_assert(!(STATE & PrioritySet), "property priority should not be set yet");
|
|
1707
|
-
m_result->setPriority(value);
|
|
1708
|
-
return castState<PrioritySet>();
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
std::unique_ptr<Cookie> build()
|
|
1712
|
-
{
|
|
1713
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1714
|
-
return std::move(m_result);
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
private:
|
|
1718
|
-
friend class Cookie;
|
|
1719
|
-
CookieBuilder() : m_result(new Cookie()) { }
|
|
1720
|
-
|
|
1721
|
-
template<int STEP> CookieBuilder<STATE | STEP>& castState()
|
|
1722
|
-
{
|
|
1723
|
-
return *reinterpret_cast<CookieBuilder<STATE | STEP>*>(this);
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
std::unique_ptr<protocol::Network::Cookie> m_result;
|
|
1727
|
-
};
|
|
1728
|
-
|
|
1729
|
-
static CookieBuilder<0> create()
|
|
1730
|
-
{
|
|
1731
|
-
return CookieBuilder<0>();
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
private:
|
|
1735
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1736
|
-
|
|
1737
|
-
Cookie()
|
|
1738
|
-
{
|
|
1739
|
-
m_expires = 0;
|
|
1740
|
-
m_size = 0;
|
|
1741
|
-
m_httpOnly = false;
|
|
1742
|
-
m_secure = false;
|
|
1743
|
-
m_session = false;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
String m_name;
|
|
1747
|
-
String m_value;
|
|
1748
|
-
String m_domain;
|
|
1749
|
-
String m_path;
|
|
1750
|
-
double m_expires;
|
|
1751
|
-
int m_size;
|
|
1752
|
-
bool m_httpOnly;
|
|
1753
|
-
bool m_secure;
|
|
1754
|
-
bool m_session;
|
|
1755
|
-
Maybe<String> m_sameSite;
|
|
1756
|
-
String m_priority;
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
class BlockedSetCookieWithReason : public ::v8_crdtp::ProtocolObject<BlockedSetCookieWithReason> {
|
|
1761
|
-
public:
|
|
1762
|
-
~BlockedSetCookieWithReason() override { }
|
|
1763
|
-
|
|
1764
|
-
protocol::Array<String>* getBlockedReasons() { return m_blockedReasons.get(); }
|
|
1765
|
-
void setBlockedReasons(std::unique_ptr<protocol::Array<String>> value) { m_blockedReasons = std::move(value); }
|
|
1766
|
-
|
|
1767
|
-
String getCookieLine() { return m_cookieLine; }
|
|
1768
|
-
void setCookieLine(const String& value) { m_cookieLine = value; }
|
|
1769
|
-
|
|
1770
|
-
bool hasCookie() { return m_cookie.isJust(); }
|
|
1771
|
-
protocol::Network::Cookie* getCookie(protocol::Network::Cookie* defaultValue) { return m_cookie.isJust() ? m_cookie.fromJust() : defaultValue; }
|
|
1772
|
-
void setCookie(std::unique_ptr<protocol::Network::Cookie> value) { m_cookie = std::move(value); }
|
|
1773
|
-
|
|
1774
|
-
template<int STATE>
|
|
1775
|
-
class BlockedSetCookieWithReasonBuilder {
|
|
1776
|
-
public:
|
|
1777
|
-
enum {
|
|
1778
|
-
NoFieldsSet = 0,
|
|
1779
|
-
BlockedReasonsSet = 1 << 1,
|
|
1780
|
-
CookieLineSet = 1 << 2,
|
|
1781
|
-
AllFieldsSet = (BlockedReasonsSet | CookieLineSet | 0)};
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
BlockedSetCookieWithReasonBuilder<STATE | BlockedReasonsSet>& setBlockedReasons(std::unique_ptr<protocol::Array<String>> value)
|
|
1785
|
-
{
|
|
1786
|
-
static_assert(!(STATE & BlockedReasonsSet), "property blockedReasons should not be set yet");
|
|
1787
|
-
m_result->setBlockedReasons(std::move(value));
|
|
1788
|
-
return castState<BlockedReasonsSet>();
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
BlockedSetCookieWithReasonBuilder<STATE | CookieLineSet>& setCookieLine(const String& value)
|
|
1792
|
-
{
|
|
1793
|
-
static_assert(!(STATE & CookieLineSet), "property cookieLine should not be set yet");
|
|
1794
|
-
m_result->setCookieLine(value);
|
|
1795
|
-
return castState<CookieLineSet>();
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
BlockedSetCookieWithReasonBuilder<STATE>& setCookie(std::unique_ptr<protocol::Network::Cookie> value)
|
|
1799
|
-
{
|
|
1800
|
-
m_result->setCookie(std::move(value));
|
|
1801
|
-
return *this;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
std::unique_ptr<BlockedSetCookieWithReason> build()
|
|
1805
|
-
{
|
|
1806
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1807
|
-
return std::move(m_result);
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
private:
|
|
1811
|
-
friend class BlockedSetCookieWithReason;
|
|
1812
|
-
BlockedSetCookieWithReasonBuilder() : m_result(new BlockedSetCookieWithReason()) { }
|
|
1813
|
-
|
|
1814
|
-
template<int STEP> BlockedSetCookieWithReasonBuilder<STATE | STEP>& castState()
|
|
1815
|
-
{
|
|
1816
|
-
return *reinterpret_cast<BlockedSetCookieWithReasonBuilder<STATE | STEP>*>(this);
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
std::unique_ptr<protocol::Network::BlockedSetCookieWithReason> m_result;
|
|
1820
|
-
};
|
|
1821
|
-
|
|
1822
|
-
static BlockedSetCookieWithReasonBuilder<0> create()
|
|
1823
|
-
{
|
|
1824
|
-
return BlockedSetCookieWithReasonBuilder<0>();
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
private:
|
|
1828
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1829
|
-
|
|
1830
|
-
BlockedSetCookieWithReason()
|
|
1831
|
-
{
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
std::unique_ptr<protocol::Array<String>> m_blockedReasons;
|
|
1835
|
-
String m_cookieLine;
|
|
1836
|
-
Maybe<protocol::Network::Cookie> m_cookie;
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
class BlockedCookieWithReason : public ::v8_crdtp::ProtocolObject<BlockedCookieWithReason> {
|
|
1841
|
-
public:
|
|
1842
|
-
~BlockedCookieWithReason() override { }
|
|
1843
|
-
|
|
1844
|
-
protocol::Array<String>* getBlockedReasons() { return m_blockedReasons.get(); }
|
|
1845
|
-
void setBlockedReasons(std::unique_ptr<protocol::Array<String>> value) { m_blockedReasons = std::move(value); }
|
|
1846
|
-
|
|
1847
|
-
protocol::Network::Cookie* getCookie() { return m_cookie.get(); }
|
|
1848
|
-
void setCookie(std::unique_ptr<protocol::Network::Cookie> value) { m_cookie = std::move(value); }
|
|
1849
|
-
|
|
1850
|
-
template<int STATE>
|
|
1851
|
-
class BlockedCookieWithReasonBuilder {
|
|
1852
|
-
public:
|
|
1853
|
-
enum {
|
|
1854
|
-
NoFieldsSet = 0,
|
|
1855
|
-
BlockedReasonsSet = 1 << 1,
|
|
1856
|
-
CookieSet = 1 << 2,
|
|
1857
|
-
AllFieldsSet = (BlockedReasonsSet | CookieSet | 0)};
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
BlockedCookieWithReasonBuilder<STATE | BlockedReasonsSet>& setBlockedReasons(std::unique_ptr<protocol::Array<String>> value)
|
|
1861
|
-
{
|
|
1862
|
-
static_assert(!(STATE & BlockedReasonsSet), "property blockedReasons should not be set yet");
|
|
1863
|
-
m_result->setBlockedReasons(std::move(value));
|
|
1864
|
-
return castState<BlockedReasonsSet>();
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
BlockedCookieWithReasonBuilder<STATE | CookieSet>& setCookie(std::unique_ptr<protocol::Network::Cookie> value)
|
|
1868
|
-
{
|
|
1869
|
-
static_assert(!(STATE & CookieSet), "property cookie should not be set yet");
|
|
1870
|
-
m_result->setCookie(std::move(value));
|
|
1871
|
-
return castState<CookieSet>();
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
std::unique_ptr<BlockedCookieWithReason> build()
|
|
1875
|
-
{
|
|
1876
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1877
|
-
return std::move(m_result);
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
private:
|
|
1881
|
-
friend class BlockedCookieWithReason;
|
|
1882
|
-
BlockedCookieWithReasonBuilder() : m_result(new BlockedCookieWithReason()) { }
|
|
1883
|
-
|
|
1884
|
-
template<int STEP> BlockedCookieWithReasonBuilder<STATE | STEP>& castState()
|
|
1885
|
-
{
|
|
1886
|
-
return *reinterpret_cast<BlockedCookieWithReasonBuilder<STATE | STEP>*>(this);
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
std::unique_ptr<protocol::Network::BlockedCookieWithReason> m_result;
|
|
1890
|
-
};
|
|
1891
|
-
|
|
1892
|
-
static BlockedCookieWithReasonBuilder<0> create()
|
|
1893
|
-
{
|
|
1894
|
-
return BlockedCookieWithReasonBuilder<0>();
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
private:
|
|
1898
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1899
|
-
|
|
1900
|
-
BlockedCookieWithReason()
|
|
1901
|
-
{
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
std::unique_ptr<protocol::Array<String>> m_blockedReasons;
|
|
1905
|
-
std::unique_ptr<protocol::Network::Cookie> m_cookie;
|
|
1906
|
-
};
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
class AuthChallenge : public ::v8_crdtp::ProtocolObject<AuthChallenge> {
|
|
1910
|
-
public:
|
|
1911
|
-
~AuthChallenge() override { }
|
|
1912
|
-
|
|
1913
|
-
struct SourceEnum {
|
|
1914
|
-
static const char* Server;
|
|
1915
|
-
static const char* Proxy;
|
|
1916
|
-
}; // SourceEnum
|
|
1917
|
-
|
|
1918
|
-
bool hasSource() { return m_source.isJust(); }
|
|
1919
|
-
String getSource(const String& defaultValue) { return m_source.isJust() ? m_source.fromJust() : defaultValue; }
|
|
1920
|
-
void setSource(const String& value) { m_source = value; }
|
|
1921
|
-
|
|
1922
|
-
String getOrigin() { return m_origin; }
|
|
1923
|
-
void setOrigin(const String& value) { m_origin = value; }
|
|
1924
|
-
|
|
1925
|
-
String getScheme() { return m_scheme; }
|
|
1926
|
-
void setScheme(const String& value) { m_scheme = value; }
|
|
1927
|
-
|
|
1928
|
-
String getRealm() { return m_realm; }
|
|
1929
|
-
void setRealm(const String& value) { m_realm = value; }
|
|
1930
|
-
|
|
1931
|
-
template<int STATE>
|
|
1932
|
-
class AuthChallengeBuilder {
|
|
1933
|
-
public:
|
|
1934
|
-
enum {
|
|
1935
|
-
NoFieldsSet = 0,
|
|
1936
|
-
OriginSet = 1 << 1,
|
|
1937
|
-
SchemeSet = 1 << 2,
|
|
1938
|
-
RealmSet = 1 << 3,
|
|
1939
|
-
AllFieldsSet = (OriginSet | SchemeSet | RealmSet | 0)};
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
AuthChallengeBuilder<STATE>& setSource(const String& value)
|
|
1943
|
-
{
|
|
1944
|
-
m_result->setSource(value);
|
|
1945
|
-
return *this;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
AuthChallengeBuilder<STATE | OriginSet>& setOrigin(const String& value)
|
|
1949
|
-
{
|
|
1950
|
-
static_assert(!(STATE & OriginSet), "property origin should not be set yet");
|
|
1951
|
-
m_result->setOrigin(value);
|
|
1952
|
-
return castState<OriginSet>();
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
AuthChallengeBuilder<STATE | SchemeSet>& setScheme(const String& value)
|
|
1956
|
-
{
|
|
1957
|
-
static_assert(!(STATE & SchemeSet), "property scheme should not be set yet");
|
|
1958
|
-
m_result->setScheme(value);
|
|
1959
|
-
return castState<SchemeSet>();
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
AuthChallengeBuilder<STATE | RealmSet>& setRealm(const String& value)
|
|
1963
|
-
{
|
|
1964
|
-
static_assert(!(STATE & RealmSet), "property realm should not be set yet");
|
|
1965
|
-
m_result->setRealm(value);
|
|
1966
|
-
return castState<RealmSet>();
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
std::unique_ptr<AuthChallenge> build()
|
|
1970
|
-
{
|
|
1971
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
1972
|
-
return std::move(m_result);
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
private:
|
|
1976
|
-
friend class AuthChallenge;
|
|
1977
|
-
AuthChallengeBuilder() : m_result(new AuthChallenge()) { }
|
|
1978
|
-
|
|
1979
|
-
template<int STEP> AuthChallengeBuilder<STATE | STEP>& castState()
|
|
1980
|
-
{
|
|
1981
|
-
return *reinterpret_cast<AuthChallengeBuilder<STATE | STEP>*>(this);
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
std::unique_ptr<protocol::Network::AuthChallenge> m_result;
|
|
1985
|
-
};
|
|
1986
|
-
|
|
1987
|
-
static AuthChallengeBuilder<0> create()
|
|
1988
|
-
{
|
|
1989
|
-
return AuthChallengeBuilder<0>();
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
private:
|
|
1993
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
1994
|
-
|
|
1995
|
-
AuthChallenge()
|
|
1996
|
-
{
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
Maybe<String> m_source;
|
|
2000
|
-
String m_origin;
|
|
2001
|
-
String m_scheme;
|
|
2002
|
-
String m_realm;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
class SignedExchangeSignature : public ::v8_crdtp::ProtocolObject<SignedExchangeSignature> {
|
|
2007
|
-
public:
|
|
2008
|
-
~SignedExchangeSignature() override { }
|
|
2009
|
-
|
|
2010
|
-
String getLabel() { return m_label; }
|
|
2011
|
-
void setLabel(const String& value) { m_label = value; }
|
|
2012
|
-
|
|
2013
|
-
String getSignature() { return m_signature; }
|
|
2014
|
-
void setSignature(const String& value) { m_signature = value; }
|
|
2015
|
-
|
|
2016
|
-
String getIntegrity() { return m_integrity; }
|
|
2017
|
-
void setIntegrity(const String& value) { m_integrity = value; }
|
|
2018
|
-
|
|
2019
|
-
bool hasCertUrl() { return m_certUrl.isJust(); }
|
|
2020
|
-
String getCertUrl(const String& defaultValue) { return m_certUrl.isJust() ? m_certUrl.fromJust() : defaultValue; }
|
|
2021
|
-
void setCertUrl(const String& value) { m_certUrl = value; }
|
|
2022
|
-
|
|
2023
|
-
bool hasCertSha256() { return m_certSha256.isJust(); }
|
|
2024
|
-
String getCertSha256(const String& defaultValue) { return m_certSha256.isJust() ? m_certSha256.fromJust() : defaultValue; }
|
|
2025
|
-
void setCertSha256(const String& value) { m_certSha256 = value; }
|
|
2026
|
-
|
|
2027
|
-
String getValidityUrl() { return m_validityUrl; }
|
|
2028
|
-
void setValidityUrl(const String& value) { m_validityUrl = value; }
|
|
2029
|
-
|
|
2030
|
-
int getDate() { return m_date; }
|
|
2031
|
-
void setDate(int value) { m_date = value; }
|
|
2032
|
-
|
|
2033
|
-
int getExpires() { return m_expires; }
|
|
2034
|
-
void setExpires(int value) { m_expires = value; }
|
|
2035
|
-
|
|
2036
|
-
bool hasCertificates() { return m_certificates.isJust(); }
|
|
2037
|
-
protocol::Array<String>* getCertificates(protocol::Array<String>* defaultValue) { return m_certificates.isJust() ? m_certificates.fromJust() : defaultValue; }
|
|
2038
|
-
void setCertificates(std::unique_ptr<protocol::Array<String>> value) { m_certificates = std::move(value); }
|
|
2039
|
-
|
|
2040
|
-
template<int STATE>
|
|
2041
|
-
class SignedExchangeSignatureBuilder {
|
|
2042
|
-
public:
|
|
2043
|
-
enum {
|
|
2044
|
-
NoFieldsSet = 0,
|
|
2045
|
-
LabelSet = 1 << 1,
|
|
2046
|
-
SignatureSet = 1 << 2,
|
|
2047
|
-
IntegritySet = 1 << 3,
|
|
2048
|
-
ValidityUrlSet = 1 << 4,
|
|
2049
|
-
DateSet = 1 << 5,
|
|
2050
|
-
ExpiresSet = 1 << 6,
|
|
2051
|
-
AllFieldsSet = (LabelSet | SignatureSet | IntegritySet | ValidityUrlSet | DateSet | ExpiresSet | 0)};
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
SignedExchangeSignatureBuilder<STATE | LabelSet>& setLabel(const String& value)
|
|
2055
|
-
{
|
|
2056
|
-
static_assert(!(STATE & LabelSet), "property label should not be set yet");
|
|
2057
|
-
m_result->setLabel(value);
|
|
2058
|
-
return castState<LabelSet>();
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
SignedExchangeSignatureBuilder<STATE | SignatureSet>& setSignature(const String& value)
|
|
2062
|
-
{
|
|
2063
|
-
static_assert(!(STATE & SignatureSet), "property signature should not be set yet");
|
|
2064
|
-
m_result->setSignature(value);
|
|
2065
|
-
return castState<SignatureSet>();
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
SignedExchangeSignatureBuilder<STATE | IntegritySet>& setIntegrity(const String& value)
|
|
2069
|
-
{
|
|
2070
|
-
static_assert(!(STATE & IntegritySet), "property integrity should not be set yet");
|
|
2071
|
-
m_result->setIntegrity(value);
|
|
2072
|
-
return castState<IntegritySet>();
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
SignedExchangeSignatureBuilder<STATE>& setCertUrl(const String& value)
|
|
2076
|
-
{
|
|
2077
|
-
m_result->setCertUrl(value);
|
|
2078
|
-
return *this;
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
SignedExchangeSignatureBuilder<STATE>& setCertSha256(const String& value)
|
|
2082
|
-
{
|
|
2083
|
-
m_result->setCertSha256(value);
|
|
2084
|
-
return *this;
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
SignedExchangeSignatureBuilder<STATE | ValidityUrlSet>& setValidityUrl(const String& value)
|
|
2088
|
-
{
|
|
2089
|
-
static_assert(!(STATE & ValidityUrlSet), "property validityUrl should not be set yet");
|
|
2090
|
-
m_result->setValidityUrl(value);
|
|
2091
|
-
return castState<ValidityUrlSet>();
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
SignedExchangeSignatureBuilder<STATE | DateSet>& setDate(int value)
|
|
2095
|
-
{
|
|
2096
|
-
static_assert(!(STATE & DateSet), "property date should not be set yet");
|
|
2097
|
-
m_result->setDate(value);
|
|
2098
|
-
return castState<DateSet>();
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
SignedExchangeSignatureBuilder<STATE | ExpiresSet>& setExpires(int value)
|
|
2102
|
-
{
|
|
2103
|
-
static_assert(!(STATE & ExpiresSet), "property expires should not be set yet");
|
|
2104
|
-
m_result->setExpires(value);
|
|
2105
|
-
return castState<ExpiresSet>();
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
SignedExchangeSignatureBuilder<STATE>& setCertificates(std::unique_ptr<protocol::Array<String>> value)
|
|
2109
|
-
{
|
|
2110
|
-
m_result->setCertificates(std::move(value));
|
|
2111
|
-
return *this;
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
std::unique_ptr<SignedExchangeSignature> build()
|
|
2115
|
-
{
|
|
2116
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
2117
|
-
return std::move(m_result);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
private:
|
|
2121
|
-
friend class SignedExchangeSignature;
|
|
2122
|
-
SignedExchangeSignatureBuilder() : m_result(new SignedExchangeSignature()) { }
|
|
2123
|
-
|
|
2124
|
-
template<int STEP> SignedExchangeSignatureBuilder<STATE | STEP>& castState()
|
|
2125
|
-
{
|
|
2126
|
-
return *reinterpret_cast<SignedExchangeSignatureBuilder<STATE | STEP>*>(this);
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
std::unique_ptr<protocol::Network::SignedExchangeSignature> m_result;
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
static SignedExchangeSignatureBuilder<0> create()
|
|
2133
|
-
{
|
|
2134
|
-
return SignedExchangeSignatureBuilder<0>();
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
private:
|
|
2138
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
2139
|
-
|
|
2140
|
-
SignedExchangeSignature()
|
|
2141
|
-
{
|
|
2142
|
-
m_date = 0;
|
|
2143
|
-
m_expires = 0;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
String m_label;
|
|
2147
|
-
String m_signature;
|
|
2148
|
-
String m_integrity;
|
|
2149
|
-
Maybe<String> m_certUrl;
|
|
2150
|
-
Maybe<String> m_certSha256;
|
|
2151
|
-
String m_validityUrl;
|
|
2152
|
-
int m_date;
|
|
2153
|
-
int m_expires;
|
|
2154
|
-
Maybe<protocol::Array<String>> m_certificates;
|
|
2155
|
-
};
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
class SignedExchangeHeader : public ::v8_crdtp::ProtocolObject<SignedExchangeHeader> {
|
|
2159
|
-
public:
|
|
2160
|
-
~SignedExchangeHeader() override { }
|
|
2161
|
-
|
|
2162
|
-
String getRequestUrl() { return m_requestUrl; }
|
|
2163
|
-
void setRequestUrl(const String& value) { m_requestUrl = value; }
|
|
2164
|
-
|
|
2165
|
-
int getResponseCode() { return m_responseCode; }
|
|
2166
|
-
void setResponseCode(int value) { m_responseCode = value; }
|
|
2167
|
-
|
|
2168
|
-
protocol::Network::Headers* getResponseHeaders() { return m_responseHeaders.get(); }
|
|
2169
|
-
void setResponseHeaders(std::unique_ptr<protocol::Network::Headers> value) { m_responseHeaders = std::move(value); }
|
|
2170
|
-
|
|
2171
|
-
protocol::Array<protocol::Network::SignedExchangeSignature>* getSignatures() { return m_signatures.get(); }
|
|
2172
|
-
void setSignatures(std::unique_ptr<protocol::Array<protocol::Network::SignedExchangeSignature>> value) { m_signatures = std::move(value); }
|
|
2173
|
-
|
|
2174
|
-
String getHeaderIntegrity() { return m_headerIntegrity; }
|
|
2175
|
-
void setHeaderIntegrity(const String& value) { m_headerIntegrity = value; }
|
|
2176
|
-
|
|
2177
|
-
template<int STATE>
|
|
2178
|
-
class SignedExchangeHeaderBuilder {
|
|
2179
|
-
public:
|
|
2180
|
-
enum {
|
|
2181
|
-
NoFieldsSet = 0,
|
|
2182
|
-
RequestUrlSet = 1 << 1,
|
|
2183
|
-
ResponseCodeSet = 1 << 2,
|
|
2184
|
-
ResponseHeadersSet = 1 << 3,
|
|
2185
|
-
SignaturesSet = 1 << 4,
|
|
2186
|
-
HeaderIntegritySet = 1 << 5,
|
|
2187
|
-
AllFieldsSet = (RequestUrlSet | ResponseCodeSet | ResponseHeadersSet | SignaturesSet | HeaderIntegritySet | 0)};
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
SignedExchangeHeaderBuilder<STATE | RequestUrlSet>& setRequestUrl(const String& value)
|
|
2191
|
-
{
|
|
2192
|
-
static_assert(!(STATE & RequestUrlSet), "property requestUrl should not be set yet");
|
|
2193
|
-
m_result->setRequestUrl(value);
|
|
2194
|
-
return castState<RequestUrlSet>();
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
SignedExchangeHeaderBuilder<STATE | ResponseCodeSet>& setResponseCode(int value)
|
|
2198
|
-
{
|
|
2199
|
-
static_assert(!(STATE & ResponseCodeSet), "property responseCode should not be set yet");
|
|
2200
|
-
m_result->setResponseCode(value);
|
|
2201
|
-
return castState<ResponseCodeSet>();
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
SignedExchangeHeaderBuilder<STATE | ResponseHeadersSet>& setResponseHeaders(std::unique_ptr<protocol::Network::Headers> value)
|
|
2205
|
-
{
|
|
2206
|
-
static_assert(!(STATE & ResponseHeadersSet), "property responseHeaders should not be set yet");
|
|
2207
|
-
m_result->setResponseHeaders(std::move(value));
|
|
2208
|
-
return castState<ResponseHeadersSet>();
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
SignedExchangeHeaderBuilder<STATE | SignaturesSet>& setSignatures(std::unique_ptr<protocol::Array<protocol::Network::SignedExchangeSignature>> value)
|
|
2212
|
-
{
|
|
2213
|
-
static_assert(!(STATE & SignaturesSet), "property signatures should not be set yet");
|
|
2214
|
-
m_result->setSignatures(std::move(value));
|
|
2215
|
-
return castState<SignaturesSet>();
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
SignedExchangeHeaderBuilder<STATE | HeaderIntegritySet>& setHeaderIntegrity(const String& value)
|
|
2219
|
-
{
|
|
2220
|
-
static_assert(!(STATE & HeaderIntegritySet), "property headerIntegrity should not be set yet");
|
|
2221
|
-
m_result->setHeaderIntegrity(value);
|
|
2222
|
-
return castState<HeaderIntegritySet>();
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
std::unique_ptr<SignedExchangeHeader> build()
|
|
2226
|
-
{
|
|
2227
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
2228
|
-
return std::move(m_result);
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
private:
|
|
2232
|
-
friend class SignedExchangeHeader;
|
|
2233
|
-
SignedExchangeHeaderBuilder() : m_result(new SignedExchangeHeader()) { }
|
|
2234
|
-
|
|
2235
|
-
template<int STEP> SignedExchangeHeaderBuilder<STATE | STEP>& castState()
|
|
2236
|
-
{
|
|
2237
|
-
return *reinterpret_cast<SignedExchangeHeaderBuilder<STATE | STEP>*>(this);
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
std::unique_ptr<protocol::Network::SignedExchangeHeader> m_result;
|
|
2241
|
-
};
|
|
2242
|
-
|
|
2243
|
-
static SignedExchangeHeaderBuilder<0> create()
|
|
2244
|
-
{
|
|
2245
|
-
return SignedExchangeHeaderBuilder<0>();
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
private:
|
|
2249
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
2250
|
-
|
|
2251
|
-
SignedExchangeHeader()
|
|
2252
|
-
{
|
|
2253
|
-
m_responseCode = 0;
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
String m_requestUrl;
|
|
2257
|
-
int m_responseCode;
|
|
2258
|
-
std::unique_ptr<protocol::Network::Headers> m_responseHeaders;
|
|
2259
|
-
std::unique_ptr<protocol::Array<protocol::Network::SignedExchangeSignature>> m_signatures;
|
|
2260
|
-
String m_headerIntegrity;
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
class SignedExchangeError : public ::v8_crdtp::ProtocolObject<SignedExchangeError> {
|
|
2265
|
-
public:
|
|
2266
|
-
~SignedExchangeError() override { }
|
|
2267
|
-
|
|
2268
|
-
String getMessage() { return m_message; }
|
|
2269
|
-
void setMessage(const String& value) { m_message = value; }
|
|
2270
|
-
|
|
2271
|
-
bool hasSignatureIndex() { return m_signatureIndex.isJust(); }
|
|
2272
|
-
int getSignatureIndex(int defaultValue) { return m_signatureIndex.isJust() ? m_signatureIndex.fromJust() : defaultValue; }
|
|
2273
|
-
void setSignatureIndex(int value) { m_signatureIndex = value; }
|
|
2274
|
-
|
|
2275
|
-
bool hasErrorField() { return m_errorField.isJust(); }
|
|
2276
|
-
String getErrorField(const String& defaultValue) { return m_errorField.isJust() ? m_errorField.fromJust() : defaultValue; }
|
|
2277
|
-
void setErrorField(const String& value) { m_errorField = value; }
|
|
2278
|
-
|
|
2279
|
-
template<int STATE>
|
|
2280
|
-
class SignedExchangeErrorBuilder {
|
|
2281
|
-
public:
|
|
2282
|
-
enum {
|
|
2283
|
-
NoFieldsSet = 0,
|
|
2284
|
-
MessageSet = 1 << 1,
|
|
2285
|
-
AllFieldsSet = (MessageSet | 0)};
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
SignedExchangeErrorBuilder<STATE | MessageSet>& setMessage(const String& value)
|
|
2289
|
-
{
|
|
2290
|
-
static_assert(!(STATE & MessageSet), "property message should not be set yet");
|
|
2291
|
-
m_result->setMessage(value);
|
|
2292
|
-
return castState<MessageSet>();
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
SignedExchangeErrorBuilder<STATE>& setSignatureIndex(int value)
|
|
2296
|
-
{
|
|
2297
|
-
m_result->setSignatureIndex(value);
|
|
2298
|
-
return *this;
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
SignedExchangeErrorBuilder<STATE>& setErrorField(const String& value)
|
|
2302
|
-
{
|
|
2303
|
-
m_result->setErrorField(value);
|
|
2304
|
-
return *this;
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
std::unique_ptr<SignedExchangeError> build()
|
|
2308
|
-
{
|
|
2309
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
2310
|
-
return std::move(m_result);
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
private:
|
|
2314
|
-
friend class SignedExchangeError;
|
|
2315
|
-
SignedExchangeErrorBuilder() : m_result(new SignedExchangeError()) { }
|
|
2316
|
-
|
|
2317
|
-
template<int STEP> SignedExchangeErrorBuilder<STATE | STEP>& castState()
|
|
2318
|
-
{
|
|
2319
|
-
return *reinterpret_cast<SignedExchangeErrorBuilder<STATE | STEP>*>(this);
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
std::unique_ptr<protocol::Network::SignedExchangeError> m_result;
|
|
2323
|
-
};
|
|
2324
|
-
|
|
2325
|
-
static SignedExchangeErrorBuilder<0> create()
|
|
2326
|
-
{
|
|
2327
|
-
return SignedExchangeErrorBuilder<0>();
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
private:
|
|
2331
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
2332
|
-
|
|
2333
|
-
SignedExchangeError()
|
|
2334
|
-
{
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
String m_message;
|
|
2338
|
-
Maybe<int> m_signatureIndex;
|
|
2339
|
-
Maybe<String> m_errorField;
|
|
2340
|
-
};
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
class SignedExchangeInfo : public ::v8_crdtp::ProtocolObject<SignedExchangeInfo> {
|
|
2344
|
-
public:
|
|
2345
|
-
~SignedExchangeInfo() override { }
|
|
2346
|
-
|
|
2347
|
-
protocol::Network::Response* getOuterResponse() { return m_outerResponse.get(); }
|
|
2348
|
-
void setOuterResponse(std::unique_ptr<protocol::Network::Response> value) { m_outerResponse = std::move(value); }
|
|
2349
|
-
|
|
2350
|
-
bool hasHeader() { return m_header.isJust(); }
|
|
2351
|
-
protocol::Network::SignedExchangeHeader* getHeader(protocol::Network::SignedExchangeHeader* defaultValue) { return m_header.isJust() ? m_header.fromJust() : defaultValue; }
|
|
2352
|
-
void setHeader(std::unique_ptr<protocol::Network::SignedExchangeHeader> value) { m_header = std::move(value); }
|
|
2353
|
-
|
|
2354
|
-
bool hasSecurityDetails() { return m_securityDetails.isJust(); }
|
|
2355
|
-
protocol::Network::SecurityDetails* getSecurityDetails(protocol::Network::SecurityDetails* defaultValue) { return m_securityDetails.isJust() ? m_securityDetails.fromJust() : defaultValue; }
|
|
2356
|
-
void setSecurityDetails(std::unique_ptr<protocol::Network::SecurityDetails> value) { m_securityDetails = std::move(value); }
|
|
2357
|
-
|
|
2358
|
-
bool hasErrors() { return m_errors.isJust(); }
|
|
2359
|
-
protocol::Array<protocol::Network::SignedExchangeError>* getErrors(protocol::Array<protocol::Network::SignedExchangeError>* defaultValue) { return m_errors.isJust() ? m_errors.fromJust() : defaultValue; }
|
|
2360
|
-
void setErrors(std::unique_ptr<protocol::Array<protocol::Network::SignedExchangeError>> value) { m_errors = std::move(value); }
|
|
2361
|
-
|
|
2362
|
-
template<int STATE>
|
|
2363
|
-
class SignedExchangeInfoBuilder {
|
|
2364
|
-
public:
|
|
2365
|
-
enum {
|
|
2366
|
-
NoFieldsSet = 0,
|
|
2367
|
-
OuterResponseSet = 1 << 1,
|
|
2368
|
-
AllFieldsSet = (OuterResponseSet | 0)};
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
SignedExchangeInfoBuilder<STATE | OuterResponseSet>& setOuterResponse(std::unique_ptr<protocol::Network::Response> value)
|
|
2372
|
-
{
|
|
2373
|
-
static_assert(!(STATE & OuterResponseSet), "property outerResponse should not be set yet");
|
|
2374
|
-
m_result->setOuterResponse(std::move(value));
|
|
2375
|
-
return castState<OuterResponseSet>();
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
SignedExchangeInfoBuilder<STATE>& setHeader(std::unique_ptr<protocol::Network::SignedExchangeHeader> value)
|
|
2379
|
-
{
|
|
2380
|
-
m_result->setHeader(std::move(value));
|
|
2381
|
-
return *this;
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
SignedExchangeInfoBuilder<STATE>& setSecurityDetails(std::unique_ptr<protocol::Network::SecurityDetails> value)
|
|
2385
|
-
{
|
|
2386
|
-
m_result->setSecurityDetails(std::move(value));
|
|
2387
|
-
return *this;
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
SignedExchangeInfoBuilder<STATE>& setErrors(std::unique_ptr<protocol::Array<protocol::Network::SignedExchangeError>> value)
|
|
2391
|
-
{
|
|
2392
|
-
m_result->setErrors(std::move(value));
|
|
2393
|
-
return *this;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
std::unique_ptr<SignedExchangeInfo> build()
|
|
2397
|
-
{
|
|
2398
|
-
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
2399
|
-
return std::move(m_result);
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
private:
|
|
2403
|
-
friend class SignedExchangeInfo;
|
|
2404
|
-
SignedExchangeInfoBuilder() : m_result(new SignedExchangeInfo()) { }
|
|
2405
|
-
|
|
2406
|
-
template<int STEP> SignedExchangeInfoBuilder<STATE | STEP>& castState()
|
|
2407
|
-
{
|
|
2408
|
-
return *reinterpret_cast<SignedExchangeInfoBuilder<STATE | STEP>*>(this);
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
std::unique_ptr<protocol::Network::SignedExchangeInfo> m_result;
|
|
2412
|
-
};
|
|
2413
|
-
|
|
2414
|
-
static SignedExchangeInfoBuilder<0> create()
|
|
2415
|
-
{
|
|
2416
|
-
return SignedExchangeInfoBuilder<0>();
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
private:
|
|
2420
|
-
DECLARE_SERIALIZATION_SUPPORT();
|
|
2421
|
-
|
|
2422
|
-
SignedExchangeInfo()
|
|
2423
|
-
{
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
std::unique_ptr<protocol::Network::Response> m_outerResponse;
|
|
2427
|
-
Maybe<protocol::Network::SignedExchangeHeader> m_header;
|
|
2428
|
-
Maybe<protocol::Network::SecurityDetails> m_securityDetails;
|
|
2429
|
-
Maybe<protocol::Array<protocol::Network::SignedExchangeError>> m_errors;
|
|
2430
|
-
};
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
// ------------- Backend interface.
|
|
2434
|
-
|
|
2435
|
-
class Backend {
|
|
2436
|
-
public:
|
|
2437
|
-
virtual ~Backend() { }
|
|
2438
|
-
|
|
2439
|
-
virtual DispatchResponse canClearBrowserCache(bool* out_result) = 0;
|
|
2440
|
-
virtual DispatchResponse canClearBrowserCookies(bool* out_result) = 0;
|
|
2441
|
-
virtual DispatchResponse disable() = 0;
|
|
2442
|
-
virtual DispatchResponse emulateNetworkConditions(bool in_offline, double in_latency, double in_downloadThroughput, double in_uploadThroughput, Maybe<String> in_connectionType) = 0;
|
|
2443
|
-
virtual DispatchResponse enable(Maybe<int> in_maxTotalBufferSize, Maybe<int> in_maxResourceBufferSize, Maybe<int> in_maxPostDataSize) = 0;
|
|
2444
|
-
virtual DispatchResponse getCertificate(const String& in_origin, std::unique_ptr<protocol::Array<String>>* out_tableNames) = 0;
|
|
2445
|
-
class GetResponseBodyCallback {
|
|
2446
|
-
public:
|
|
2447
|
-
virtual void sendSuccess(const String& body, bool base64Encoded) = 0;
|
|
2448
|
-
virtual void sendFailure(const DispatchResponse&) = 0;
|
|
2449
|
-
virtual void fallThrough() = 0;
|
|
2450
|
-
virtual ~GetResponseBodyCallback() { }
|
|
2451
|
-
};
|
|
2452
|
-
virtual void getResponseBody(const String& in_requestId, std::unique_ptr<GetResponseBodyCallback> callback) = 0;
|
|
2453
|
-
class GetRequestPostDataCallback {
|
|
2454
|
-
public:
|
|
2455
|
-
virtual void sendSuccess(const String& postData) = 0;
|
|
2456
|
-
virtual void sendFailure(const DispatchResponse&) = 0;
|
|
2457
|
-
virtual void fallThrough() = 0;
|
|
2458
|
-
virtual ~GetRequestPostDataCallback() { }
|
|
2459
|
-
};
|
|
2460
|
-
virtual void getRequestPostData(const String& in_requestId, std::unique_ptr<GetRequestPostDataCallback> callback) = 0;
|
|
2461
|
-
virtual DispatchResponse replayXHR(const String& in_requestId) = 0;
|
|
2462
|
-
virtual DispatchResponse searchInResponseBody(const String& in_requestId, const String& in_query, Maybe<bool> in_caseSensitive, Maybe<bool> in_isRegex, std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>>* out_result) = 0;
|
|
2463
|
-
virtual DispatchResponse setBlockedURLs(std::unique_ptr<protocol::Array<String>> in_urls) = 0;
|
|
2464
|
-
virtual DispatchResponse setBypassServiceWorker(bool in_bypass) = 0;
|
|
2465
|
-
virtual DispatchResponse setCacheDisabled(bool in_cacheDisabled) = 0;
|
|
2466
|
-
virtual DispatchResponse setDataSizeLimitsForTest(int in_maxTotalSize, int in_maxResourceSize) = 0;
|
|
2467
|
-
virtual DispatchResponse setExtraHTTPHeaders(std::unique_ptr<protocol::Network::Headers> in_headers) = 0;
|
|
2468
|
-
|
|
2469
|
-
};
|
|
2470
|
-
|
|
2471
|
-
// ------------- Frontend interface.
|
|
2472
|
-
|
|
2473
|
-
class Frontend {
|
|
2474
|
-
public:
|
|
2475
|
-
explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
|
|
2476
|
-
void dataReceived(const String& requestId, double timestamp, int dataLength, int encodedDataLength);
|
|
2477
|
-
void eventSourceMessageReceived(const String& requestId, double timestamp, const String& eventName, const String& eventId, const String& data);
|
|
2478
|
-
void loadingFailed(const String& requestId, double timestamp, const String& type, const String& errorText, Maybe<bool> canceled = Maybe<bool>(), Maybe<String> blockedReason = Maybe<String>());
|
|
2479
|
-
void loadingFinished(const String& requestId, double timestamp, double encodedDataLength, Maybe<bool> shouldReportCorbBlocking = Maybe<bool>());
|
|
2480
|
-
void requestIntercepted(const String& interceptionId, std::unique_ptr<protocol::Network::Request> request, const String& frameId, const String& resourceType, bool isNavigationRequest, Maybe<bool> isDownload = Maybe<bool>(), Maybe<String> redirectUrl = Maybe<String>(), Maybe<protocol::Network::AuthChallenge> authChallenge = Maybe<protocol::Network::AuthChallenge>(), Maybe<String> responseErrorReason = Maybe<String>(), Maybe<int> responseStatusCode = Maybe<int>(), Maybe<protocol::Network::Headers> responseHeaders = Maybe<protocol::Network::Headers>(), Maybe<String> requestId = Maybe<String>());
|
|
2481
|
-
void requestServedFromCache(const String& requestId);
|
|
2482
|
-
void requestWillBeSent(const String& requestId, const String& loaderId, const String& documentURL, std::unique_ptr<protocol::Network::Request> request, double timestamp, double wallTime, std::unique_ptr<protocol::Network::Initiator> initiator, Maybe<protocol::Network::Response> redirectResponse = Maybe<protocol::Network::Response>(), Maybe<String> type = Maybe<String>(), Maybe<String> frameId = Maybe<String>(), Maybe<bool> hasUserGesture = Maybe<bool>());
|
|
2483
|
-
void resourceChangedPriority(const String& requestId, const String& newPriority, double timestamp);
|
|
2484
|
-
void signedExchangeReceived(const String& requestId, std::unique_ptr<protocol::Network::SignedExchangeInfo> info);
|
|
2485
|
-
void responseReceived(const String& requestId, const String& loaderId, double timestamp, const String& type, std::unique_ptr<protocol::Network::Response> response, Maybe<String> frameId = Maybe<String>());
|
|
2486
|
-
void webSocketClosed(const String& requestId, double timestamp);
|
|
2487
|
-
void webSocketCreated(const String& requestId, const String& url, Maybe<protocol::Network::Initiator> initiator = Maybe<protocol::Network::Initiator>());
|
|
2488
|
-
void webSocketFrameError(const String& requestId, double timestamp, const String& errorMessage);
|
|
2489
|
-
void webSocketFrameReceived(const String& requestId, double timestamp, std::unique_ptr<protocol::Network::WebSocketFrame> response);
|
|
2490
|
-
void webSocketFrameSent(const String& requestId, double timestamp, std::unique_ptr<protocol::Network::WebSocketFrame> response);
|
|
2491
|
-
void webSocketHandshakeResponseReceived(const String& requestId, double timestamp, std::unique_ptr<protocol::Network::WebSocketResponse> response);
|
|
2492
|
-
void webSocketWillSendHandshakeRequest(const String& requestId, double timestamp, double wallTime, std::unique_ptr<protocol::Network::WebSocketRequest> request);
|
|
2493
|
-
void requestWillBeSentExtraInfo(const String& requestId, std::unique_ptr<protocol::Array<protocol::Network::BlockedCookieWithReason>> blockedCookies, std::unique_ptr<protocol::Network::Headers> headers);
|
|
2494
|
-
void responseReceivedExtraInfo(const String& requestId, std::unique_ptr<protocol::Array<protocol::Network::BlockedSetCookieWithReason>> blockedCookies, std::unique_ptr<protocol::Network::Headers> headers, Maybe<String> headersText = Maybe<String>());
|
|
2495
|
-
|
|
2496
|
-
void flush();
|
|
2497
|
-
void sendRawNotification(std::unique_ptr<Serializable>);
|
|
2498
|
-
private:
|
|
2499
|
-
FrontendChannel* frontend_channel_;
|
|
2500
|
-
};
|
|
2501
|
-
|
|
2502
|
-
// ------------- Dispatcher.
|
|
2503
|
-
|
|
2504
|
-
class Dispatcher {
|
|
2505
|
-
public:
|
|
2506
|
-
static void wire(UberDispatcher*, Backend*);
|
|
2507
|
-
|
|
2508
|
-
private:
|
|
2509
|
-
Dispatcher() { }
|
|
2510
|
-
};
|
|
2511
|
-
|
|
2512
|
-
// ------------- Metainfo.
|
|
2513
|
-
|
|
2514
|
-
class Metainfo {
|
|
2515
|
-
public:
|
|
2516
|
-
using BackendClass = Backend;
|
|
2517
|
-
using FrontendClass = Frontend;
|
|
2518
|
-
using DispatcherClass = Dispatcher;
|
|
2519
|
-
static const char domainName[];
|
|
2520
|
-
static const char commandPrefix[];
|
|
2521
|
-
static const char version[];
|
|
2522
|
-
};
|
|
2523
|
-
|
|
2524
|
-
} // namespace Network
|
|
2525
|
-
} // namespace v8_inspector
|
|
2526
|
-
} // namespace protocol
|
|
2527
|
-
|
|
2528
|
-
#endif // !defined(v8_inspector_protocol_Network_h)
|