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

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

Issue 11776024: Document and test case sensitivity in URL matcher attributes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always learning something new: PRIuS makes Android happy Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/common/extensions/matcher/url_matcher_factory_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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": "events", 7 "namespace": "events",
8 "internal": true, 8 "internal": true,
9 "unprivileged": true, 9 "unprivileged": true,
10 "types": [ 10 "types": [
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "priority": { 184 "priority": {
185 "type": "integer", 185 "type": "integer",
186 "optional": true, 186 "optional": true,
187 "description": "Optional priority of this rule. Defaults to 100." 187 "description": "Optional priority of this rule. Defaults to 100."
188 } 188 }
189 } 189 }
190 }, 190 },
191 { 191 {
192 "id": "UrlFilter", 192 "id": "UrlFilter",
193 "type": "object", 193 "type": "object",
194 "description": "Filters URLs for various criteria. See <a href='#filtere d'>event filtering</a>.", 194 "description": "Filters URLs for various criteria. See <a href='#filtere d'>event filtering</a>. All criteria are case sensitive.",
195 "nocompile": true, 195 "nocompile": true,
196 "properties": { 196 "properties": {
197 "hostContains": { 197 "hostContains": {
198 "type": "string", 198 "type": "string",
199 "description": "Matches if the host name of the URL contains a speci fied string. To test whether a host name component has a prefix 'foo', use hostC ontains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implici t dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against co mponents ('.foo.'). Suffix- and exact-matching for the last components need to b e done separately using hostSuffix, because no implicit dot is added at the end of the host name.", 199 "description": "Matches if the host name of the URL contains a speci fied string. To test whether a host name component has a prefix 'foo', use hostC ontains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implici t dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against co mponents ('.foo.'). Suffix- and exact-matching for the last components need to b e done separately using hostSuffix, because no implicit dot is added at the end of the host name.",
200 "optional": true 200 "optional": true
201 }, 201 },
202 "hostEquals": { 202 "hostEquals": {
203 "type": "string", 203 "type": "string",
204 "description": "Matches if the host name of the URL is equal to a sp ecified string.", 204 "description": "Matches if the host name of the URL is equal to a sp ecified string.",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."} 295 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."}
296 ] 296 ]
297 } 297 }
298 } 298 }
299 } 299 }
300 } 300 }
301 ] 301 ]
302 } 302 }
303 ] 303 ]
304 304
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/matcher/url_matcher_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698