Index: chrome/common/extensions/api/declarativeWebRequest.json |
diff --git a/chrome/common/extensions/api/declarativeWebRequest.json b/chrome/common/extensions/api/declarativeWebRequest.json |
deleted file mode 100644 |
index c3d19dd5ea5bf3db63cc9fd680e73ef797ad3590..0000000000000000000000000000000000000000 |
--- a/chrome/common/extensions/api/declarativeWebRequest.json |
+++ /dev/null |
@@ -1,64 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-[ |
- { |
- "namespace": "declarativeWebRequest", |
- "documentation_permissions_required": ["declarative", "declarativeWebRequest"], |
- "types": [ |
- { |
- "id": "RequestMatcher", |
- "type": "object", |
- "description": "Matches network events by various criteria.", |
- "properties": { |
- "url": { |
- "$ref": "declarative.UrlFilter", |
- "description": "Matches if the condition of the UrlFilter are fulfilled for the URL of the request.", |
- "optional": true |
- }, |
- "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": ["declarativeWebRequest.RequestMatcher"] } |
- } |
- }, |
- { |
- "id": "CancelRequest", |
- "description": "Declarative event action that cancels a network request.", |
- "type": "object", |
- "properties": { |
- "instanceType": { "type": "string", "enum": ["declarativeWebRequest.CancelRequest"] } |
- } |
- }, |
- { |
- "id": "RedirectRequest", |
- "description": "Declarative event action that redirects a network request.", |
- "type": "object", |
- "properties": { |
- "instanceType": { "type": "string", "enum": ["declarativeWebRequest.RedirectRequest"] }, |
- "redirectUrl": { "type": "string", "description": "Destination to where the request is redirected."} |
- } |
- } |
- ], |
- "functions": [ |
- ], |
- "events": [ |
- { |
- "name": "onRequest", |
- "options": { |
- "supportsListeners": false, |
- "supportsRules": true, |
- "conditions": ["declarativeWebRequest.RequestMatcher"], |
- "actions": [ |
- "declarativeWebRequest.CancelRequest", |
- "declarativeWebRequest.RedirectRequest" |
- ] |
- } |
- } |
- ] |
- } |
-] |