Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 8352042: Update contentSettings extension API docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix link Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/extensions/docs/contentSettings.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 8205 matching lines...) Expand 10 before | Expand all | Expand 10 after
8216 "id": { 8216 "id": {
8217 "type": "string", 8217 "type": "string",
8218 "description": "The resource identifier for the given content type." 8218 "description": "The resource identifier for the given content type."
8219 }, 8219 },
8220 "description": { 8220 "description": {
8221 "type": "string", 8221 "type": "string",
8222 "optional": true, 8222 "optional": true,
8223 "description": "A human readable description of the resource." 8223 "description": "A human readable description of the resource."
8224 } 8224 }
8225 }, 8225 },
8226 "description": "The only content type using resource identifiers is <var >plugins</var>. Using a resource identifier allows an extension to specify conte nt settings applying only to a specific plug-in. If no rule for the specific plu g-in is found, the rules without resource identifiers are applied." 8226 "description": "The only content type using resource identifiers is <a h ref=\"contentSettings.html#property-plugins\"><var>plugins</var></a>. For more i nformation, see <a href=\"contentSettings.html#resource-identifiers\">Resource I dentifiers</a>."
8227 }, 8227 },
8228 { 8228 {
8229 "id": "ContentSetting", 8229 "id": "ContentSetting",
8230 "type": "object", 8230 "type": "object",
8231 "functions": [ 8231 "functions": [
8232 { 8232 {
8233 "name": "clear", 8233 "name": "clear",
8234 "type": "function", 8234 "type": "function",
8235 "description": "Clear all content setting rules set by this extensio n.", 8235 "description": "Clear all content setting rules set by this extensio n.",
8236 "parameters": [ 8236 "parameters": [
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
8306 "name": "set", 8306 "name": "set",
8307 "type": "function", 8307 "type": "function",
8308 "description": "Applies a new content setting rule.", 8308 "description": "Applies a new content setting rule.",
8309 "parameters": [ 8309 "parameters": [
8310 { 8310 {
8311 "name": "details", 8311 "name": "details",
8312 "type": "object", 8312 "type": "object",
8313 "properties": { 8313 "properties": {
8314 "primaryPattern": { 8314 "primaryPattern": {
8315 "type": "string", 8315 "type": "string",
8316 "description": "The pattern for the primary URL. For details on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a >." 8316 "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>."
8317 }, 8317 },
8318 "secondaryPattern": { 8318 "secondaryPattern": {
8319 "type": "string", 8319 "type": "string",
8320 "description": "The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href='match _patterns.html'>Match Patterns</a>.", 8320 "description": "The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href='conte ntSettings.html#patterns'>Content Setting Patterns</a>.",
8321 "optional": true 8321 "optional": true
8322 }, 8322 },
8323 "resourceIdentifier": { 8323 "resourceIdentifier": {
8324 "$ref": "ResourceIdentifier", 8324 "$ref": "ResourceIdentifier",
8325 "optional": true, 8325 "optional": true,
8326 "description": "The resource identifier for the content type ." 8326 "description": "The resource identifier for the content type ."
8327 }, 8327 },
8328 "setting": { 8328 "setting": {
8329 "type": "any", 8329 "type": "any",
8330 "description": "The setting applied by this rule. See the de scription of the individual ContentSetting objects for the possible values." 8330 "description": "The setting applied by this rule. See the de scription of the individual ContentSetting objects for the possible values."
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
8365 ] 8365 ]
8366 } 8366 }
8367 ] 8367 ]
8368 } 8368 }
8369 ] 8369 ]
8370 } 8370 }
8371 ], 8371 ],
8372 "properties": { 8372 "properties": {
8373 "cookies": { 8373 "cookies": {
8374 "$ref": "ContentSetting", 8374 "$ref": "ContentSetting",
8375 "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>: Bl ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses sion. Default is <var>allow</var>.<br>The primary URL is the URL representing th e cookie origin. The secondary URL is the URL of the top-level frame.", 8375 "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>: Bl ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses sion. <br>Default is <var>allow</var>.<br>The primary URL is the URL representin g the cookie origin. The secondary URL is the URL of the top-level frame.",
8376 "value": [ 8376 "value": [
8377 "cookies", 8377 "cookies",
8378 {"type":"string", "enum": ["allow", "block", "session_only"]} 8378 {"type":"string", "enum": ["allow", "block", "session_only"]}
8379 ] 8379 ]
8380 }, 8380 },
8381 "images": { 8381 "images": {
8382 "$ref": "ContentSetting", 8382 "$ref": "ContentSetting",
8383 "description": "Whether to show images. One of<br><var>allow</var>: Show images,<br><var>block</var>: Don't show images. Default is <var>allow</var>.<br >The primary URL is the main-frame URL. The secondary URL is not used.", 8383 "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 not used.",
8384 "value": [ 8384 "value": [
8385 "images", 8385 "images",
8386 {"type":"string", "enum": ["allow", "block"]} 8386 {"type":"string", "enum": ["allow", "block"]}
8387 ] 8387 ]
8388 }, 8388 },
8389 "javascript": { 8389 "javascript": {
8390 "$ref": "ContentSetting", 8390 "$ref": "ContentSetting",
8391 "description": "Whether to run Javascript. One of<br><var>allow</var>: R un Javascript,<br><var>block</var>: Don't run Javascript. Default is <var>allow< /var>.<br>The primary URL is the main-frame URL. The secondary URL is not used." , 8391 "description": "Whether to run JavaScript. One of<br><var>allow</var>: R un JavaScript,<br><var>block</var>: Don't run JavaScript. <br>Default is <var>al low</var>.<br>The primary URL is the main-frame URL. The secondary URL is not us ed.",
8392 "value": [ 8392 "value": [
8393 "javascript", 8393 "javascript",
8394 {"type":"string", "enum": ["allow", "block"]} 8394 {"type":"string", "enum": ["allow", "block"]}
8395 ] 8395 ]
8396 }, 8396 },
8397 "plugins": { 8397 "plugins": {
8398 "$ref": "ContentSetting", 8398 "$ref": "ContentSetting",
8399 "description": "Whether to run plug-ins. One of<br><var>allow</var>: Run plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically. Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secon dary URL is not used.", 8399 "description": "Whether to run plug-ins. One of<br><var>allow</var>: Run plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically. <br>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The s econdary URL is not used.",
8400 "value": [ 8400 "value": [
8401 "plugins", 8401 "plugins",
8402 {"type":"string", "enum": ["allow", "block"]} 8402 {"type":"string", "enum": ["allow", "block"]}
8403 ] 8403 ]
8404 }, 8404 },
8405 "popups": { 8405 "popups": {
8406 "$ref": "ContentSetting", 8406 "$ref": "ContentSetting",
8407 "description": "Whether to allow sites to show pop-ups. One of<br><var>a llow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites to show pop-ups. Default is <var>block</var>.<br>The primary URL is the main-fra me URL. The secondary URL is not used.", 8407 "description": "Whether to allow sites to show pop-ups. One of<br><var>a llow</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.",
8408 "value": [ 8408 "value": [
8409 "popups", 8409 "popups",
8410 {"type":"string", "enum": ["allow", "block"]} 8410 {"type":"string", "enum": ["allow", "block"]}
8411 ] 8411 ]
8412 }, 8412 },
8413 "notifications": { 8413 "notifications": {
8414 "$ref": "ContentSetting", 8414 "$ref": "ContentSetting",
8415 "description": "Whether to allow sites to show desktop notifications. On e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As k when a site wants to show desktop notifications. Default is <var>ask</var>.<br >The primary URL is the main-frame URL. The secondary URL is not used.", 8415 "description": "Whether to allow sites to show desktop notifications. On e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As k 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.",
8416 "value": [ 8416 "value": [
8417 "notifications", 8417 "notifications",
8418 {"type":"string", "enum": ["allow", "block", "ask"]} 8418 {"type":"string", "enum": ["allow", "block", "ask"]}
8419 ] 8419 ]
8420 } 8420 }
8421 } 8421 }
8422 }, 8422 },
8423 { 8423 {
8424 "namespace": "experimental.privacy", 8424 "namespace": "experimental.privacy",
8425 "properties": { 8425 "properties": {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
9114 "type": "array", 9114 "type": "array",
9115 "items": { "$ref": "mimeTypeEnum" } 9115 "items": { "$ref": "mimeTypeEnum" }
9116 } 9116 }
9117 ] 9117 ]
9118 } 9118 }
9119 ] 9119 ]
9120 } 9120 }
9121 ] 9121 ]
9122 } 9122 }
9123 ] 9123 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/contentSettings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698