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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Strawman #2 for discussion. Created 9 years, 5 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 67700c82a7569620bd85fc6bd6b5367dd7b9e4f1..041cb5e5d08b860292aa99d81adc3901ddff7c85 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -6257,27 +6257,6 @@
}
],
"properties": {
- "global": {
- "type": "object",
- "value": {},
- "properties": {
- "thirdPartyCookiesAllowed": {
- "$ref": "ChromeSetting",
- "value": ["thirdPartyCookiesAllowed", {"type": "boolean"}],
- "description": "Whether third party cookies should be allowed. The value of this preference is of type boolean, and the default value is true."
- },
- "referrersEnabled": {
- "$ref": "ChromeSetting",
- "value": ["referrersEnabled", {"type":"boolean"}],
- "description": "Whether referrers should be enabled. The value of this preference is of type boolean, and the default value is true."
- },
- "hyperlinkAuditingEnabled": {
- "$ref": "ChromeSetting",
- "value": ["hyperlinkAuditingEnabled", {"type":"boolean"}],
- "description": "Whether to enable hyperlink auditing (\"<a ping>\"). The value of this preference is of type boolean, and the default value is true."
- }
- }
- },
"cookies": {
"$ref": "ContentSetting",
"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>: Block cookies,<br><var>session_only</var>: Accept cookies only for the current session. Default is <var>allow</var>.<br>The primary URL is the URL representing the cookie origin. The secondary URL is the URL of the top-level frame.",
@@ -6329,6 +6308,71 @@
}
},
{
+ "namespace": "experimental.networkServices",
+ "properties": {
+ "alternateErrorPagesEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["alternateErrorPagesEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
battre 2011/07/27 12:24:20 What is an alternate error page? Will there always
+ },
+ "autofillEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["autofillEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
battre 2011/07/27 12:24:20 I'd find it great, if each element was shortly des
Mike West 2011/07/27 18:04:14 I've just copy/pasted all of these. I'm waiting un
+ },
+ "instantEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["instantEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
+ },
+ "metricsReportingEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["metricsReportingEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
battre 2011/07/27 12:24:20 defaults to true?
+ },
+ "safeBrowsingEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["safeBrowsingEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
+ },
+ "searchSuggestEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["searchSuggestEnabled", {"type":"boolean"}],
+ "description": "If enabled, Chrome sends the text you type into the Omnibox to your default search engine, which provides predictions of websites and searches that are likely completions of what you've typed so far. This preference's value is a boolean, defaulting to <code>true</code>."
+ },
+ "translateEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["translateEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
battre 2011/07/27 12:24:20 the setting enabled that translate is *offered*, i
Mike West 2011/07/27 18:04:14 Done.
+ }
+ }
+ },
+ {
+ "namespace": "experimental.networkSettings",
+ "properties": {
+ "thirdPartyCookiesAllowed": {
Bernhard Bauer 2011/07/27 11:41:34 Could we keep thirdPartyCookiesAllowed in contentS
Mike West 2011/07/27 11:48:01 Let's talk this afternoon. :)
+ "$ref": "ChromeSetting",
+ "value": ["thirdPartyCookiesAllowed", {"type": "boolean"}],
+ "description": "Whether third party cookies should be allowed. The value of this preference is of type boolean, and the default value is true."
battre 2011/07/27 12:24:20 what does "allowed" mean? Setting? Reading?
Mike West 2011/07/27 18:04:14 Done.
+ },
+ "hyperlinkAuditingEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["hyperlinkAuditingEnabled", {"type":"boolean"}],
+ "description": "Whether to enable hyperlink auditing (\"&lt;a ping&gt;\"). The value of this preference is of type boolean, and the default value is true."
+ },
+ "networkPredictionEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["networkPredictionEnabled", {"type":"boolean"}],
+ "description": "This preference's value is a boolean, defaulting to <code>true</code>."
+ },
+ "referrersEnabled": {
+ "$ref": "ChromeSetting",
+ "value": ["referrersEnabled", {"type":"boolean"}],
+ "description": "Whether referrers should be enabled. The value of this preference is of type boolean, and the default value is true."
+ }
+ }
+ },
+ {
"namespace": "experimental.debugger",
"functions": [
{

Powered by Google App Engine
This is Rietveld 408576698