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

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 sort order 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..641ae13424c24eca58551c4c28624fa9007b275b 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -4537,5 +4537,86 @@
]
}
]
+ },
+ {
+ "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"
Aaron Boodman 2011/02/11 18:33:19 Can it really be any? I think maybe it can only be
Bernhard Bauer 2011/02/13 18:19:12 The preference system itself allows any sort of |V
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "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",
+ "description": "Called after the preference has been set.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "experimental.contentSettings.misc",
+ "properties": {
+ "blockThirdPartyCookies": {
+ "$ref": "Preference",
+ "description": "Whether third party cookies should be blocked."
Aaron Boodman 2011/02/11 18:33:19 If you go with this system of reusing the Preferen
Bernhard Bauer 2011/02/13 18:19:12 Done.
+ }
+ }
}
]

Powered by Google App Engine
This is Rietveld 408576698