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

Side by Side Diff: chrome/common/extensions/api/declarativeWebRequest.json

Issue 10272021: Files generated by the JSON schema compiler are named incorrectly (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor changes 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "declarativeWebRequest",
8 "documentation_permissions_required": ["declarative", "declarativeWebRequest "],
9 "types": [
10 {
11 "id": "RequestMatcher",
12 "type": "object",
13 "description": "Matches network events by various criteria.",
14 "properties": {
15 "url": {
16 "$ref": "declarative.UrlFilter",
17 "description": "Matches if the condition of the UrlFilter are fulfil led for the URL of the request.",
18 "optional": true
19 },
20 "resourceType": {
21 "type": "array",
22 "optional": true,
23 "description": "Matches if the request type of a request is containe d in the list. Requests that cannot match any of the types will be filtered out. ",
24 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] }
25 },
26 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Re questMatcher"] }
27 }
28 },
29 {
30 "id": "CancelRequest",
31 "description": "Declarative event action that cancels a network request. ",
32 "type": "object",
33 "properties": {
34 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Ca ncelRequest"] }
35 }
36 },
37 {
38 "id": "RedirectRequest",
39 "description": "Declarative event action that redirects a network reques t.",
40 "type": "object",
41 "properties": {
42 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Re directRequest"] },
43 "redirectUrl": { "type": "string", "description": "Destination to wher e the request is redirected."}
44 }
45 }
46 ],
47 "functions": [
48 ],
49 "events": [
50 {
51 "name": "onRequest",
52 "options": {
53 "supportsListeners": false,
54 "supportsRules": true,
55 "conditions": ["declarativeWebRequest.RequestMatcher"],
56 "actions": [
57 "declarativeWebRequest.CancelRequest",
58 "declarativeWebRequest.RedirectRequest"
59 ]
60 }
61 }
62 ]
63 }
64 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/context_menus.json ('k') | chrome/common/extensions/api/declarative_web_request.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698