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

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

Issue 10052035: Implemented port filter for URLMatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comment 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "schemes": { 89 "schemes": {
90 "type": "array", 90 "type": "array",
91 "description": "Matches if the scheme of the URL is equal to any of the schemes specified in the 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" } 93 "items": { "type": "string" }
94 }, 94 },
95 "ports": {
96 "type": "array",
97 "description": "Matches if the port of the URL is contained in any o f the specified port lists. For example <code>[80, 443, [1000, 1200]]</code> mat ches all requests on port 80, 443 and in the range 1000-1200.",
98 "optional": true,
99 "items": {
100 "choices": [
101 {"type": "integer", "description": "A specific port."},
102 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."}
103 ]
104 }
105 },
95 "resourceType": { 106 "resourceType": {
96 "type": "array", 107 "type": "array",
97 "optional": true, 108 "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. ", 109 "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"] } 110 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] }
100 }, 111 },
101 "instanceType": { "type": "string", "enum": ["experimental.webRequest. RequestMatcher"] } 112 "instanceType": { "type": "string", "enum": ["experimental.webRequest. RequestMatcher"] }
102 } 113 }
103 }, 114 },
104 { 115 {
(...skipping 22 matching lines...) Expand all
127 "options": { 138 "options": {
128 "supportsListeners": false, 139 "supportsListeners": false,
129 "supportsRules": true, 140 "supportsRules": true,
130 "conditions": ["RequestMatcher"], 141 "conditions": ["RequestMatcher"],
131 "actions": ["CancelRequest", "RedirectRequest"] 142 "actions": ["CancelRequest", "RedirectRequest"]
132 } 143 }
133 } 144 }
134 ] 145 ]
135 } 146 }
136 ] 147 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698