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 and preemptively opening TCP and SSL
  /// connections to servers. This preference only affects actions taken by
  /// Chrome's internal prediction service. It does not affect
  /// webpage-initiated prefectches or preconnects. 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,
      );