1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "namespace": "contentSettings",
8 "description": "The contentSettings API.",
11 "id": "ResourceIdentifier",
16 "description": "The resource identifier for the given content type."
21 "description": "A human readable description of the resource."
24 "description": "The only content type using resource identifiers is <a href=\"contentSettings.html#property-plugins\"><var>plugins</var></a>. For more information, see <a href=\"contentSettings.html#resource-identifiers\">Resource Identifiers</a>."
27 "id": "ContentSetting",
33 "description": "Clear all content setting rules set by this extension.",
41 "enum": ["regular", "incognito_session_only"],
43 "description": "Where to set the setting (default: regular). One of<br><var>regular</var>: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),<br><var>incognito_session_only</var>: setting for incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular settings)."
58 "description": "Gets the current content setting for a given pair of URLs.",
66 "description": "The primary URL for which the content setting should be retrieved. Note that the meaning of a primary URL depends on the content type."
70 "description": "The secondary URL for which the content setting should be retrieved. Defaults to the primary URL. Note that the meaning of a secondary URL depends on the content type, and not all content types use secondary URLs.",
73 "resourceIdentifier": {
74 "$ref": "ResourceIdentifier",
76 "description": "A more specific identifier of the type of content for which the settings should be retrieved."
81 "description": "Whether to check the content settings for an incognito session. (default false)"
95 "description": "The content setting. See the description of the individual ContentSetting objects for the possible values."
106 "description": "Applies a new content setting rule.",
114 "description": "The pattern for the primary URL. For details on the format of a pattern, see <a href='contentSettings.html#patterns'>Content Setting Patterns</a>."
116 "secondaryPattern": {
118 "description": "The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href='contentSettings.html#patterns'>Content Setting Patterns</a>.",
121 "resourceIdentifier": {
122 "$ref": "ResourceIdentifier",
124 "description": "The resource identifier for the content type."
128 "description": "The setting applied by this rule. See the description of the individual ContentSetting objects for the possible values."
132 "enum": ["regular", "incognito_session_only"],
134 "description": "Where to clear the setting (default: regular). One of<br><var>regular</var>: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),<br><var>incognito_session_only</var>: setting for incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular settings)."
147 "name": "getResourceIdentifiers",
156 "name": "resourceIdentifiers",
158 "description": "A list of resource identifiers for this content type, or <var>undefined</var> if this content type does not use resource identifiers.",
161 "$ref": "ResourceIdentifier"
173 "$ref": "ContentSetting",
174 "description": "Whether to allow cookies and other local data to be set by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Block cookies,<br><var>session_only</var>: Accept cookies only for the current session. <br>Default is <var>allow</var>.<br>The primary URL is the URL representing the cookie origin. The secondary URL is the URL of the top-level frame.",
177 {"type":"string", "enum": ["allow", "block", "session_only"]}
181 "$ref": "ContentSetting",
182 "description": "Whether to show images. One of<br><var>allow</var>: Show images,<br><var>block</var>: Don't show images. <br>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary URL is the URL of the image.",
185 {"type":"string", "enum": ["allow", "block"]}
189 "$ref": "ContentSetting",
190 "description": "Whether to run JavaScript. One of<br><var>allow</var>: Run JavaScript,<br><var>block</var>: Don't run JavaScript. <br>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.",
193 {"type":"string", "enum": ["allow", "block"]}
197 "$ref": "ContentSetting",
198 "description": "Whether to run plugins. One of<br><var>allow</var>: Run plugins automatically,<br><var>block</var>: Don't run plugins automatically. <br>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.",
201 {"type":"string", "enum": ["allow", "block"]}
205 "$ref": "ContentSetting",
206 "description": "Whether to allow sites to show pop-ups. One of<br><var>allow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites to show pop-ups. <br>Default is <var>block</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.",
209 {"type":"string", "enum": ["allow", "block"]}
213 "$ref": "ContentSetting",
214 "description": "Whether to allow sites to show desktop notifications. One of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>block</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: Ask when a site wants to show desktop notifications. <br>Default is <var>ask</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.",
217 {"type":"string", "enum": ["allow", "block", "ask"]}