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

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

Issue 6480033: Implement experimental.contentSettings.misc.blockThirdPartyCookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar cleanup Created 9 years, 10 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
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 4513 matching lines...) Expand 10 before | Expand all | Expand 10 after
4524 "properties": { 4524 "properties": {
4525 "login": { "type": "string", "optional": true }, 4525 "login": { "type": "string", "optional": true },
4526 "token": { "type": "string", "optional": true } 4526 "token": { "type": "string", "optional": true }
4527 } 4527 }
4528 } 4528 }
4529 ] 4529 ]
4530 } 4530 }
4531 ] 4531 ]
4532 } 4532 }
4533 ] 4533 ]
4534 },
4535 {
4536 "namespace": "experimental.extension",
4537 "types": [
4538 {
4539 "id": "Preference",
4540 "type": "object",
4541 "customBindings": "Preference",
4542 "description": "An object which allows access to a preference.",
4543 "functions": [
4544 {
4545 "name": "get",
4546 "type": "function",
4547 "description": "Get the setting from the user preferences.",
4548 "parameters": [
4549 {
4550 "name": "details",
4551 "type": "object",
4552 "description": "What setting to return.",
4553 "properties": {
4554 "incognito": {
4555 "type": "boolean",
4556 "optional": true,
4557 "description": "Whether to return the setting that applies t o the incognito session only (default false)."
4558 }
4559 }
4560 },
4561 {
4562 "name": "callback",
4563 "type": "function",
4564 "parameters": [
4565 {
4566 "name": "value",
4567 "description": "The value of the preference.",
4568 "type": "any"
4569 }
4570 ]
4571 }
4572 ]
4573 },
4574 {
4575 "name": "set",
4576 "type": "function",
4577 "description": "Set the setting in the user preferences",
4578 "parameters": [
4579 {
4580 "name": "details",
4581 "type": "object",
4582 "description": "What setting to change.",
4583 "properties": {
4584 "value": {
4585 "description": "The value of the preference.",
4586 "type": "any"
4587 },
4588 "incognito": {
4589 "type": "boolean",
4590 "optional": true,
4591 "description": "Whether to modify the setting for the incogn ito session only (default false)."
4592 }
4593 }
4594 },
4595 {
4596 "name": "callback",
4597 "type": "function",
4598 "description": "Called after the preference has been set.",
4599 "optional": true,
4600 "parameters": []
4601 }
4602 ]
4603 }
4604 ]
4605 }
4606 ]
4607 },
4608 {
4609 "namespace": "experimental.contentSettings.misc",
4610 "properties": {
4611 "blockThirdPartyCookies": {
4612 "$ref": "Preference",
4613 "value": ["blockThirdPartyCookies", {"type": "boolean"}],
4614 "description": "Whether third party cookies should be blocked. The value of this preference is of type boolean."
4615 }
4616 }
4534 } 4617 }
4535 ] 4618 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698