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

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

Issue 10012004: Implemented proper support for checking schemes and requested resource types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed 'scheme' to 'schemes' Created 8 years, 8 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "experimental.webRequest", 7 "namespace": "experimental.webRequest",
8 "types": [ 8 "types": [
9 { 9 {
10 "id": "RequestMatcher", 10 "id": "RequestMatcher",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 "url_prefix": { 79 "url_prefix": {
80 "type": "string", 80 "type": "string",
81 "description": "Matches if the URL starts with a specified string.", 81 "description": "Matches if the URL starts with a specified string.",
82 "optional": true 82 "optional": true
83 }, 83 },
84 "url_suffix": { 84 "url_suffix": {
85 "type": "string", 85 "type": "string",
86 "description": "Matches if the URL ends with a specified string.", 86 "description": "Matches if the URL ends with a specified string.",
87 "optional": true 87 "optional": true
88 }, 88 },
89 "scheme": { 89 "schemes": {
90 "type": "string", 90 "type": "array",
91 "description": "Matches if the scheme of the URL is equal to a speci fied string (TODO: this will be expanded to an array).", 91 "description": "Matches if the scheme of the URL is equal to any of the schemes specified in the array.",
92 "optional": true 92 "optional": true,
93 "items": { "type": "string" }
94 },
95 "resourceType": {
96 "type": "array",
97 "optional": true,
98 "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. ",
99 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] }
93 }, 100 },
94 "instanceType": { "type": "string", "enum": ["experimental.webRequest. RequestMatcher"] } 101 "instanceType": { "type": "string", "enum": ["experimental.webRequest. RequestMatcher"] }
95 } 102 }
96 }, 103 },
97 { 104 {
98 "id": "CancelRequest", 105 "id": "CancelRequest",
99 "description": "Declarative event action that cancels a network request. ", 106 "description": "Declarative event action that cancels a network request. ",
100 "type": "object", 107 "type": "object",
101 "properties": { 108 "properties": {
102 "instanceType": { "type": "string", "enum": ["experimental.webRequest. CancelRequest"] } 109 "instanceType": { "type": "string", "enum": ["experimental.webRequest. CancelRequest"] }
(...skipping 17 matching lines...) Expand all
120 "options": { 127 "options": {
121 "supportsListeners": false, 128 "supportsListeners": false,
122 "supportsRules": true, 129 "supportsRules": true,
123 "conditions": ["RequestMatcher"], 130 "conditions": ["RequestMatcher"],
124 "actions": ["CancelRequest", "RedirectRequest"] 131 "actions": ["CancelRequest", "RedirectRequest"]
125 } 132 }
126 } 133 }
127 ] 134 ]
128 } 135 }
129 ] 136 ]
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/docs/experimental.webRequest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698