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

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

Issue 10386172: Implemented declarative redirects to transparent image and empty document. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 7 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/declarative_web_request.json
diff --git a/chrome/common/extensions/api/declarative_web_request.json b/chrome/common/extensions/api/declarative_web_request.json
index 0f7d81d1584984c439cd71414b8f9aef9986fbc1..49b2d18384c11772a7a819e3152eb34875a190b9 100644
--- a/chrome/common/extensions/api/declarative_web_request.json
+++ b/chrome/common/extensions/api/declarative_web_request.json
@@ -51,6 +51,28 @@
},
"redirectUrl": { "type": "string", "description": "Destination to where the request is redirected."}
}
+ },
+ {
+ "id": "declarativeWebRequest.RedirectToTransparentImage",
+ "description": "Declarative event action that redirects a network request to a transparent image.",
+ "type": "object",
+ "properties": {
+ "instanceType": {
+ "type": "string", "enum": ["declarativeWebRequest.RedirectToTransparentImage"],
+ "nodoc": true
+ }
+ }
+ },
+ {
+ "id": "declarativeWebRequest.RedirectToEmptyDocument",
+ "description": "Declarative event action that redirects a network request to an empty document.",
+ "type": "object",
+ "properties": {
+ "instanceType": {
+ "type": "string", "enum": ["declarativeWebRequest.RedirectToEmptyDocument"],
+ "nodoc": true
+ }
+ }
}
],
"functions": [
@@ -64,7 +86,9 @@
"conditions": ["declarativeWebRequest.RequestMatcher"],
"actions": [
"declarativeWebRequest.CancelRequest",
- "declarativeWebRequest.RedirectRequest"
+ "declarativeWebRequest.RedirectRequest",
+ "declarativeWebRequest.RedirectToTransparentImage",
+ "declarativeWebRequest.RedirectToEmptyDocument"
]
}
}

Powered by Google App Engine
This is Rietveld 408576698