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

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

Issue 9192029: Bindings layer for declarative events API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check whether eventName may be optional Created 8 years, 10 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/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/webRequest.json
diff --git a/chrome/common/extensions/api/webRequest.json b/chrome/common/extensions/api/webRequest.json
index 40ac446a41c154acba74483af80fcc94d5eb823a..52e007f9f7d62885a8360473df33c4e340062d26 100644
--- a/chrome/common/extensions/api/webRequest.json
+++ b/chrome/common/extensions/api/webRequest.json
@@ -75,6 +75,38 @@
}
}
}
+ },
+ {
+ "nodoc": true,
+ "id": "RequestMatcher",
+ "type": "object",
+ "description": "Matches network events by various criteria. Experimental junk, do not use!",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "Matches for a full URL",
+ "optional": true
+ },
+ "filterType": { "type": "string", "enum": ["net.RequestMatcher"] }
+ }
+ },
+ {
+ "nodoc": true,
+ "id": "CancelRequest",
+ "description": "Declarative event action that cancels a network request. Experimental junk, do not use!",
+ "type": "object",
+ "properties": {
+ "actionType": { "type": "string", "enum": ["net.CancelRequest"] }
+ }
+ },
+ {
+ "nodoc": true,
+ "id": "ModifyRequest",
+ "description": "Declarative event action that modifies a network request. Experimental junk, do not use!",
+ "type": "object",
+ "properties": {
+ "actionType": { "type": "string", "enum": ["net.ModifyRequest"] }
+ }
}
],
"functions": [
@@ -518,6 +550,16 @@
"description": "A set of filters that restricts the events that will be sent to this listener."
}
]
+ },
+ {
+ "name": "onRequest",
+ "nodoc": true,
+ "options": {
+ "supportsListeners": false,
+ "supportsRules": true,
+ "conditions": ["RequestMatcher"],
+ "actions": ["CancelRequest", "ModifyRequest"]
+ }
}
]
}
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698