| Index: chrome/common/extensions/api/declarative.json
|
| diff --git a/chrome/common/extensions/api/declarative.json b/chrome/common/extensions/api/declarative.json
|
| deleted file mode 100644
|
| index bf5ab508e38e462569f305d5e1dfa351662f76c4..0000000000000000000000000000000000000000
|
| --- a/chrome/common/extensions/api/declarative.json
|
| +++ /dev/null
|
| @@ -1,236 +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": "declarative",
|
| - "internal": true,
|
| - "documentation_permissions_required": ["declarative"],
|
| - "types": [
|
| - {
|
| - "id": "Rule",
|
| - "type": "object",
|
| - "description": "Description of a declarative rule for handling events.",
|
| - "properties": {
|
| - "id": {
|
| - "type": "string",
|
| - "optional": true,
|
| - "description": "Optional identifier that allows referencing this rule."
|
| - },
|
| - "conditions": {
|
| - "type": "array",
|
| - "items": {"type": "any"},
|
| - "description": "List of conditions that can trigger the actions."
|
| - },
|
| - "actions": {
|
| - "type": "array",
|
| - "items": {"type": "any"},
|
| - "description": "List of actions that are triggered if one of the condtions is fulfilled."
|
| - },
|
| - "priority": {
|
| - "type": "integer",
|
| - "optional": true,
|
| - "description": "Optional priority of this rule. Defaults to 100."
|
| - }
|
| - }
|
| - },
|
| - {
|
| - "id": "UrlFilter",
|
| - "type": "object",
|
| - "description": "Filters URLs for various criteria",
|
| - "nocompile": true,
|
| - "properties": {
|
| - "hostContains": {
|
| - "type": "string",
|
| - "description": "Matches if the host name of the URL contains a specified string.",
|
| - "optional": true
|
| - },
|
| - "hostEquals": {
|
| - "type": "string",
|
| - "description": "Matches if the host name of the URL is equal to a specified string.",
|
| - "optional": true
|
| - },
|
| - "hostPrefix": {
|
| - "type": "string",
|
| - "description": "Matches if the host name of the URL starts with a specified string.",
|
| - "optional": true
|
| - },
|
| - "hostSuffix": {
|
| - "type": "string",
|
| - "description": "Matches if the host name of the URL ends with a specified string.",
|
| - "optional": true
|
| - },
|
| - "pathContains": {
|
| - "type": "string",
|
| - "description": "Matches if the path segment of the URL contains a specified string.",
|
| - "optional": true
|
| - },
|
| - "pathEquals": {
|
| - "type": "string",
|
| - "description": "Matches if the path segment of the URL is equal to a specified string.",
|
| - "optional": true
|
| - },
|
| - "pathPrefix": {
|
| - "type": "string",
|
| - "description": "Matches if the path segment of the URL starts with a specified string.",
|
| - "optional": true
|
| - },
|
| - "pathSuffix": {
|
| - "type": "string",
|
| - "description": "Matches if the path segment of the URL ends with a specified string.",
|
| - "optional": true
|
| - },
|
| - "queryEquals": {
|
| - "type": "string",
|
| - "description": "Matches if the query segment of the URL is equal to a specified string.",
|
| - "optional": true
|
| - },
|
| - "queryPrefix": {
|
| - "type": "string",
|
| - "description": "Matches if the query segment of the URL starts with a specified string.",
|
| - "optional": true
|
| - },
|
| - "querySuffix": {
|
| - "type": "string",
|
| - "description": "Matches if the query segment of the URL ends with a specified string.",
|
| - "optional": true
|
| - },
|
| - "urlSuffix": {
|
| - "type": "string",
|
| - "description": "Matches if the URL ends with a specified string.",
|
| - "optional": true
|
| - },
|
| - "urlEquals": {
|
| - "type": "string",
|
| - "description": "Matches if the URL is equal to a specified string.",
|
| - "optional": true
|
| - },
|
| - "urlPrefix": {
|
| - "type": "string",
|
| - "description": "Matches if the URL starts with a specified string.",
|
| - "optional": true
|
| - },
|
| - "urlSuffix": {
|
| - "type": "string",
|
| - "description": "Matches if the URL ends with a specified string.",
|
| - "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" }
|
| - },
|
| - "ports": {
|
| - "type": "array",
|
| - "description": "Matches if the port of the URL is contained in any of the specified port lists. For example <code>[80, 443, [1000, 1200]]</code> matches all requests on port 80, 443 and in the range 1000-1200.",
|
| - "optional": true,
|
| - "items": {
|
| - "choices": [
|
| - {"type": "integer", "description": "A specific port."},
|
| - {"type": "array", "items": {"type": "integer"}, "description": "A pair of integers identiying the start and end (both inclusive) of a port range."}
|
| - ]
|
| - }
|
| - }
|
| - }
|
| - }
|
| - ],
|
| - "functions": [
|
| - {
|
| - "name": "addRules",
|
| - "type": "function",
|
| - "description": "Registers rules to handle events. Note that you cannot call this function as <code>chrome.declarative.addRules(...)</code>. Instead a function of this signature is provided for event objects supporting the declarative API such as <code>chrome.declarativeWebRequest.onRequest</code>.",
|
| - "parameters": [
|
| - {
|
| - "nodoc": "true",
|
| - "name": "eventName",
|
| - "type": "string",
|
| - "description": "Name of the event this function affects."
|
| - },
|
| - {
|
| - "name": "rules",
|
| - "type": "array",
|
| - "items": {"$ref": "Rule"},
|
| - "description": "Rules to be registered. These do not replace previously registered rules."
|
| - },
|
| - {
|
| - "name": "callback",
|
| - "optional": true,
|
| - "type": "function",
|
| - "parameters": [
|
| - {
|
| - "name": "rules",
|
| - "type": "array",
|
| - "items": {"$ref": "Rule"},
|
| - "description": "Rules that were registered, the optional parameters are filled with values."
|
| - }
|
| - ],
|
| - "description": "Called with registered rules."
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "getRules",
|
| - "type": "function",
|
| - "description": "Returns currently registered rules. Note that you cannot call this function as <code>chrome.declarative.getRules(...)</code>. Instead a function of this signature is provided for event objects supporting the declarative API such as <code>chrome.declarativeWebRequest.onRequest</code>.",
|
| - "parameters": [
|
| - {
|
| - "nodoc": "true",
|
| - "name": "eventName",
|
| - "type": "string",
|
| - "description": "Name of the event this function affects."
|
| - },
|
| - {
|
| - "name": "ruleIdentifiers",
|
| - "optional": "true",
|
| - "type": "array",
|
| - "items": {"type": "string"},
|
| - "description": "If an array is passed, only rules with identifiers contained in this array are returned."
|
| - },
|
| - {
|
| - "name": "callback",
|
| - "type": "function",
|
| - "parameters": [
|
| - {
|
| - "name": "rules",
|
| - "type": "array",
|
| - "items": {"$ref": "Rule"},
|
| - "description": "Rules that were registered, the optional parameters are filled with values."
|
| - }
|
| - ],
|
| - "description": "Called with registered rules."
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - "name": "removeRules",
|
| - "type": "function",
|
| - "description": "Unregisters currently registered rules. Note that you cannot call this function as <code>chrome.declarative.removeRules(...)</code>. Instead a function of this signature is provided for event objects supporting the declarative API such as <code>chrome.declarativeWebRequest.onRequest</code>.",
|
| - "parameters": [
|
| - {
|
| - "nodoc": "true",
|
| - "name": "eventName",
|
| - "type": "string",
|
| - "description": "Name of the event this function affects."
|
| - },
|
| - {
|
| - "name": "ruleIdentifiers",
|
| - "optional": "true",
|
| - "type": "array",
|
| - "items": {"type": "string"},
|
| - "description": "If an array is passed, only rules with identifiers contained in this array are unregistered."
|
| - },
|
| - {
|
| - "name": "callback",
|
| - "optional": true,
|
| - "type": "function",
|
| - "parameters": [],
|
| - "description": "Called when rules were unregistered."
|
| - }
|
| - ]
|
| - }
|
| - ]
|
| - }
|
| -]
|
| -
|
|
|