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

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

Issue 9315010: RulesRegistry for declarative APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comiler errors Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "webRequest", 3 "namespace": "webRequest",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "RequestFilter", 6 "id": "RequestFilter",
7 "type": "object", 7 "type": "object",
8 "description": "An object describing filters to apply to webRequest even ts.", 8 "description": "An object describing filters to apply to webRequest even ts.",
9 "properties": { 9 "properties": {
10 "urls": { 10 "urls": {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 "nodoc": true, 80 "nodoc": true,
81 "id": "RequestMatcher", 81 "id": "RequestMatcher",
82 "type": "object", 82 "type": "object",
83 "description": "Matches network events by various criteria. Experimental junk, do not use!", 83 "description": "Matches network events by various criteria. Experimental junk, do not use!",
84 "properties": { 84 "properties": {
85 "url": { 85 "url": {
86 "type": "string", 86 "type": "string",
87 "description": "Matches for a full URL", 87 "description": "Matches for a full URL",
88 "optional": true 88 "optional": true
89 }, 89 },
90 "filterType": { "type": "string", "enum": ["net.RequestMatcher"] } 90 "instanceType": { "type": "string", "enum": ["webRequest.RequestMatche r"] }
91 } 91 }
92 }, 92 },
93 { 93 {
94 "nodoc": true, 94 "nodoc": true,
95 "id": "CancelRequest", 95 "id": "CancelRequest",
96 "description": "Declarative event action that cancels a network request. Experimental junk, do not use!", 96 "description": "Declarative event action that cancels a network request. Experimental junk, do not use!",
97 "type": "object", 97 "type": "object",
98 "properties": { 98 "properties": {
99 "actionType": { "type": "string", "enum": ["net.CancelRequest"] } 99 "instanceType": { "type": "string", "enum": ["webRequest.CancelRequest "] }
100 } 100 }
101 }, 101 },
102 { 102 {
103 "nodoc": true, 103 "nodoc": true,
104 "id": "ModifyRequest", 104 "id": "ModifyRequest",
105 "description": "Declarative event action that modifies a network request . Experimental junk, do not use!", 105 "description": "Declarative event action that modifies a network request . Experimental junk, do not use!",
106 "type": "object", 106 "type": "object",
107 "properties": { 107 "properties": {
108 "actionType": { "type": "string", "enum": ["net.ModifyRequest"] } 108 "instanceType": { "type": "string", "enum": ["webRequest.ModifyRequest "] }
109 } 109 }
110 } 110 }
111 ], 111 ],
112 "functions": [ 112 "functions": [
113 { 113 {
114 "name": "addEventListener", 114 "name": "addEventListener",
115 "nodoc": true, 115 "nodoc": true,
116 "type": "function", 116 "type": "function",
117 "description": "Used internally to implement the special form of addList ener for the webRequest events.", 117 "description": "Used internally to implement the special form of addList ener for the webRequest events.",
118 "parameters": [ 118 "parameters": [
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 "options": { 557 "options": {
558 "supportsListeners": false, 558 "supportsListeners": false,
559 "supportsRules": true, 559 "supportsRules": true,
560 "conditions": ["RequestMatcher"], 560 "conditions": ["RequestMatcher"],
561 "actions": ["CancelRequest", "ModifyRequest"] 561 "actions": ["CancelRequest", "ModifyRequest"]
562 } 562 }
563 } 563 }
564 ] 564 ]
565 } 565 }
566 ] 566 ]
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/declarative/api/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698