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

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: Fix error caused by rebasing 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 ea05f2d8cc2c9199eb03c80fcb8cfbe760d1bfff..d8319c3e68fb3816049d9bd4925a278ca43c6e7b 100644
--- a/chrome/common/extensions/api/declarative_web_request.json
+++ b/chrome/common/extensions/api/declarative_web_request.json
@@ -42,6 +42,28 @@
"instanceType": { "type": "string", "enum": ["declarativeWebRequest.RedirectRequest"] },
"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": [
@@ -55,7 +77,9 @@
"conditions": ["declarativeWebRequest.RequestMatcher"],
"actions": [
"declarativeWebRequest.CancelRequest",
- "declarativeWebRequest.RedirectRequest"
+ "declarativeWebRequest.RedirectRequest",
+ "declarativeWebRequest.RedirectToTransparentImage",
+ "declarativeWebRequest.RedirectToEmptyDocument"
]
}
}

Powered by Google App Engine
This is Rietveld 408576698