Dart Documentationchrome.privacyWebsitesPrivacy

WebsitesPrivacy class

class WebsitesPrivacy extends ChromeObject {
 WebsitesPrivacy();
 WebsitesPrivacy.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * If disabled, Chrome blocks third-party sites from setting cookies. The
  * value of this preference is of type boolean, and the default value is
  * `true`.
  */
 ChromeSetting get thirdPartyCookiesAllowed => _createChromeSetting(jsProxy['thirdPartyCookiesAllowed']);

 /**
  * If enabled, Chrome sends auditing pings when requested by a website (`<a
  * ping>`). The value of this preference is of type boolean, and the
  * default value is `true`.
  */
 ChromeSetting get hyperlinkAuditingEnabled => _createChromeSetting(jsProxy['hyperlinkAuditingEnabled']);

 /**
  * If enabled, Chrome sends `referer` headers with your requests. Yes, the
  * name of this preference doesn't match the misspelled header. No, we're not
  * going to change it. The value of this preference is of type boolean, and
  * the default value is `true`.
  */
 ChromeSetting get referrersEnabled => _createChromeSetting(jsProxy['referrersEnabled']);

 /**
  * *Available on Windows and ChromeOS only*: If enabled, Chrome provides a
  * unique ID to plugins in order to run protected content. The value of this
  * preference is of type boolean, and the default value is `true`.
  */
 ChromeSetting get protectedContentEnabled => _createChromeSetting(jsProxy['protectedContentEnabled']);
}

Extends

ChromeObject > WebsitesPrivacy

Constructors

new WebsitesPrivacy() #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
WebsitesPrivacy();

new WebsitesPrivacy.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
WebsitesPrivacy.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final ChromeSetting hyperlinkAuditingEnabled #

If enabled, Chrome sends auditing pings when requested by a website (<a ping>). The value of this preference is of type boolean, and the default value is true.

ChromeSetting get hyperlinkAuditingEnabled => _createChromeSetting(jsProxy['hyperlinkAuditingEnabled']);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

final ChromeSetting protectedContentEnabled #

Available on Windows and ChromeOS only: If enabled, Chrome provides a unique ID to plugins in order to run protected content. The value of this preference is of type boolean, and the default value is true.

ChromeSetting get protectedContentEnabled => _createChromeSetting(jsProxy['protectedContentEnabled']);

final ChromeSetting referrersEnabled #

If enabled, Chrome sends referer headers with your requests. Yes, the name of this preference doesn't match the misspelled header. No, we're not going to change it. The value of this preference is of type boolean, and the default value is true.

ChromeSetting get referrersEnabled => _createChromeSetting(jsProxy['referrersEnabled']);

final ChromeSetting thirdPartyCookiesAllowed #

If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is true.

ChromeSetting get thirdPartyCookiesAllowed => _createChromeSetting(jsProxy['thirdPartyCookiesAllowed']);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();