From 0a8db0d25b730ea77c96733b53f39abd55305ae7 Mon Sep 17 00:00:00 2001 From: "bauerb@chromium.org" Date: Wed, 13 Apr 2011 15:15:40 +0000 Subject: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc extension API. BUG=71067 TEST=ExtensionApiTest.* Review URL: http://codereview.chromium.org/6773006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81420 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/api/extension_api.json | 10 ++ .../docs/experimental.contentSettings.misc.html | 152 +++++++++++++++++++++ chrome/common/pref_names.cc | 6 + chrome/common/pref_names.h | 10 +- 4 files changed, 174 insertions(+), 4 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 5556731d..fb48df2 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -4916,6 +4916,16 @@ "$ref": "Preference", "value": ["blockThirdPartyCookies", {"type": "boolean"}], "description": "Whether third party cookies should be blocked. The value of this preference is of type boolean." + }, + "enableReferrers": { + "$ref": "Preference", + "value": ["enableReferrers", {"type":"boolean"}], + "description": "Whether referrers should be enabled. The value of this preference is of type boolean." + }, + "enableHyperlinkAuditing": { + "$ref": "Preference", + "value": ["enableHyperlinkAuditing", {"type":"boolean"}], + "description": "Whether to enable hyperlink auditing (\"<a ping>\"). The value of this preference is of type boolean." } } }, diff --git a/chrome/common/extensions/docs/experimental.contentSettings.misc.html b/chrome/common/extensions/docs/experimental.contentSettings.misc.html index 61631d8..dc1ce80 100644 --- a/chrome/common/extensions/docs/experimental.contentSettings.misc.html +++ b/chrome/common/extensions/docs/experimental.contentSettings.misc.html @@ -273,6 +273,10 @@
  1. blockThirdPartyCookies +
  2. + enableReferrers +
  3. + enableHyperlinkAuditing
@@ -398,6 +402,154 @@ +
+ +

enableReferrers

+
+ + chrome.experimental.contentSettings.misc.enableReferrers +
+
+
+ enableReferrers + + + +
+ ( + + + + + Preference + + + + array of + + paramType + + + + ) +
+ +
+
+ +
Whether referrers should be enabled. The value of this preference is of type boolean.
+
+ This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
+ + +
+
+
+
+
+
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ +
+
+ +

enableHyperlinkAuditing

+
+ + chrome.experimental.contentSettings.misc.enableHyperlinkAuditing +
+
+
+ enableHyperlinkAuditing + + + +
+ ( + + + + + Preference + + + + array of + + paramType + + + + ) +
+ +
+
+ +
Whether to enable hyperlink auditing ("<a ping>"). The value of this preference is of type boolean.
+
+ This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
+ + +
+
+
+
+
+
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ +
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index 42adbef..97f0426 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -698,6 +698,12 @@ const char kGeolocationContentSettings[] = "geolocation.content_settings"; // Preference to disable 3D APIs (WebGL, Pepper 3D). const char kDisable3DAPIs[] = "disable_3d_apis"; +// Whether to enable hyperlink auditing (""). +const char kEnableHyperlinkAuditing[] = "enable_a_ping"; + +// Whether to enable sending referrers. +const char kEnableReferrers[] = "enable_referrers"; + // *************** LOCAL STATE *************** // These are attached to the machine/installation diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index 00964c7..c10057b 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -12,7 +12,7 @@ namespace prefs { -// Profile prefs +// Profile prefs. Please add Local State prefs below instead. extern const char kAppsPromoCounter[]; extern const char kDefaultAppsInstalled[]; extern const char kHomePageIsNewTabPage[]; @@ -242,7 +242,11 @@ extern const char kHttpThrottlingEnabled[]; extern const char kPolicyUserPolicyRefreshRate[]; extern const char kPolicyDevicePolicyRefreshRate[]; -// Local state +extern const char kDisable3DAPIs[]; +extern const char kEnableHyperlinkAuditing[]; +extern const char kEnableReferrers[]; + +// Local state prefs. Please add Profile prefs above instead. extern const char kCertRevocationCheckingEnabled[]; extern const char kSSL3Enabled[]; extern const char kTLS1Enabled[]; @@ -471,8 +475,6 @@ extern const char kGSSAPILibraryName[]; extern const char kKnownBackgroundPages[]; -extern const char kDisable3DAPIs[]; - extern const char kRegisteredProtocolHandlers[]; } // namespace prefs -- cgit v1.1