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

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: comments 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 05c53a392cb7179e1c017587cd2b26c8b77cb4ce..12b1f0e01e3670d147f73f78ecbffbb0a14b6325 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -4558,5 +4558,88 @@
]
}
]
+ },
+ {
+ "namespace": "experimental.extension",
+ "types": [
+ {
+ "id": "Preference",
+ "type": "object",
+ "customBindings": "Preference",
+ "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",
+ "description": "Called after the preference has been set.",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "experimental.contentSettings.misc",
+ "properties": {
+ "blockThirdPartyCookies": {
+ "$ref": "Preference",
+ "value": ["blockThirdPartyCookies", {"type": "boolean"}],
+ "description": "Whether third party cookies should be blocked. The value of this preference is of type boolean."
+ }
+ }
}
]
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698