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

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

Issue 7229012: Use extension match pattern syntax in content settings extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize port Created 9 years, 6 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 50b97f2abe58689b86d0305d474a642eefd37763..cc30bf6c4fc0992ce86c5f6e9f580717cfd12d51 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -5802,26 +5802,16 @@
"description": "Currently, no content types use resource identifiers."
},
{
- "id": "Pattern",
- "type": "object",
- "properties": {
- "pattern": {
- "type": "string",
- "description": "The pattern string. The pattern should never be constructed directly, but should always be derived from an URL using the methods in the <var>contentSettings.patterns</var> module."
- }
- }
- },
- {
"id": "ContentSettingRule",
"type": "object",
"properties": {
"topLevelPattern": {
- "$ref": "Pattern",
- "description": "The pattern for the top-level frame URL."
+ "type": "string",
+ "description": "The pattern for the top-level frame URL. For details on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a>."
},
"embeddedPattern": {
- "$ref": "Pattern",
- "description": "The pattern for the frame or object URL."
+ "type": "string",
+ "description": "The pattern for the frame or object URL. For details on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a>."
},
"resourceIdentifier": {
"$ref": "ResourceIdentifier",
@@ -5920,12 +5910,12 @@
"type": "object",
"properties": {
"topLevelPattern": {
- "$ref": "Pattern",
- "description": "The pattern for the top-level frame URL."
+ "type": "string",
+ "description": "The pattern for the top-level frame URL. For details on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a>."
},
"embeddedPattern": {
- "$ref": "Pattern",
- "description": "The pattern for the frame or object URL."
+ "type": "string",
+ "description": "The pattern for the frame or object URL. For details on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a>."
},
"resourceIdentifier": {
"$ref": "ResourceIdentifier",

Powered by Google App Engine
This is Rietveld 408576698