PrivacyNetwork constructor

PrivacyNetwork({
  1. required ChromeSetting networkPredictionEnabled,
  2. required ChromeSetting webRtcipHandlingPolicy,
})

Implementation

PrivacyNetwork({
  /// If enabled, Chrome attempts to speed up your web browsing experience by
  /// pre-resolving DNS entries, preemptively opening TCP and SSL connections
  /// to servers, and preloading pages. Disabling this preference overrides
  /// site owners' ability to speculatively load content (such as prefetching
  /// or prerendering via the [Speculation Rules
  /// API](https://developer.mozilla.org/docs/Web/API/Speculation_Rules_API)).
  /// It does not affect webpage-initiated preconnects or DNS prefetches. This
  /// preference's value is a boolean, defaulting to `true`.
  required ChromeSetting networkPredictionEnabled,

  /// Allow users to specify the media performance/privacy tradeoffs which
  /// impacts how WebRTC traffic will be routed and how much local address
  /// information is exposed. This preference's value is of type
  /// IPHandlingPolicy, defaulting to `default`.
  required ChromeSetting webRtcipHandlingPolicy,
}) : _wrapped = $js.PrivacyNetwork(
        networkPredictionEnabled: networkPredictionEnabled.toJS,
        webRTCIPHandlingPolicy: webRtcipHandlingPolicy.toJS,
      );