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

Unified Diff: chrome/common/extensions/api/experimental.webRequest.json

Issue 10012004: Implemented proper support for checking schemes and requested resource types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/experimental.webRequest.json
diff --git a/chrome/common/extensions/api/experimental.webRequest.json b/chrome/common/extensions/api/experimental.webRequest.json
index 38f5f667342524235f4067ef06ffd0e50a500d28..00258810653c6004a91d4ab471af4b5d1a5926d8 100644
--- a/chrome/common/extensions/api/experimental.webRequest.json
+++ b/chrome/common/extensions/api/experimental.webRequest.json
@@ -87,9 +87,16 @@
"optional": true
},
"scheme": {
- "type": "string",
- "description": "Matches if the scheme of the URL is equal to a specified string (TODO: this will be expanded to an array).",
- "optional": true
+ "type": "array",
+ "description": "Matches if the scheme of the URL is equal to any of the schemes specified in the array.",
+ "optional": true,
+ "items": { "type": "string" }
+ },
+ "resourceType": {
+ "type": "array",
+ "optional": true,
+ "description": "Matches if the request type of a request is contained in the list. Requests that cannot match any of the types will be filtered out.",
+ "items": { "type": "string", "enum": ["main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", "other"] }
},
"instanceType": { "type": "string", "enum": ["experimental.webRequest.RequestMatcher"] }
}

Powered by Google App Engine
This is Rietveld 408576698