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

Unified 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: fix stuff 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index f3582aa795357c2d07b1bc5f8cd20b9a45d3755d..1aea2ddd25770890c4793569b681e66922fc84b3 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -4537,5 +4537,85 @@
]
}
]
+ },
+ {
+ "namespace": "experimental.extension",
+ "types": [
+ {
+ "id": "Preference",
+ "type": "object",
+ "description": "An object which allows access to a preference.",
+ "functions": [
+ {
+ "name": "get",
+ "type": "function",
+ "description": "Get the setting from the user preferences.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "What setting to return.",
+ "properties": {
+ "incognito": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether to return the setting that applies to the incognito session only (default false)."
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "value",
+ "description": "The value of the preference.",
+ "type": "any"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "set",
+ "type": "function",
+ "description": "Set the setting in the user preferences",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "What setting to change.",
+ "properties": {
+ "value": {
+ "description": "The value of the preference.",
+ "type": "any"
+ },
+ "incognito": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether to modify the setting for the incognito session only (default false)."
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": []
battre 2011/02/11 13:49:02 "description": "Callback to confirm that setting t
Bernhard Bauer 2011/02/11 15:27:15 Done, I tried to keep the text similar to most of
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "experimental.contentSettings.misc",
+ "properties": {
+ "blockThirdPartyCookies": {
+ "$ref": "Preference",
+ "description": "Whether third party cookies should be blocked."
+ }
+ }
}
]

Powered by Google App Engine
This is Rietveld 408576698