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

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: Renamed 'scheme' to 'schemes' 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/docs/experimental.webRequest.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d76d11208a2ebd96fdd9937b46a2921e57a046c7 100644
--- a/chrome/common/extensions/api/experimental.webRequest.json
+++ b/chrome/common/extensions/api/experimental.webRequest.json
@@ -86,10 +86,17 @@
"description": "Matches if the URL ends with a specified string.",
"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
+ "schemes": {
+ "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"] }
}
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/docs/experimental.webRequest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698