OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 The following table shows some valid patterns. | 247 The following table shows some valid patterns. |
248 </p> | 248 </p> |
249 | 249 |
250 <table> | 250 <table> |
251 <tbody> | 251 <tbody> |
252 <tr> | 252 <tr> |
253 <th>Pattern</th> | 253 <th>Pattern</th> |
254 <th>What it does</th> | 254 <th>What it does</th> |
255 <th>Examples of matching URLs</th> | 255 <th>Examples of matching URLs</th> |
256 </tr> | 256 </tr> |
257 | 257 |
258 <tr> | 258 <tr> |
259 <td> | 259 <td> |
260 <code>http://*/*</code> | 260 <code>http://*/*</code> |
261 </td> | 261 </td> |
262 | 262 |
263 <td>Matches any URL that uses the <code>http</code> scheme</td> | 263 <td>Matches any URL that uses the <code>http</code> scheme</td> |
264 | 264 |
265 <td> | 265 <td> |
266 http://www.google.com/<br> | 266 http://www.google.com/<br> |
267 http://example.org/foo/bar.html | 267 http://example.org/foo/bar.html |
268 </td> | 268 </td> |
269 </tr> | 269 </tr> |
270 | 270 |
271 <tr> | 271 <tr> |
272 <td> | 272 <td> |
273 <code>http://*/foo*</code> | 273 <code>http://*/foo*</code> |
274 </td> | 274 </td> |
275 | 275 |
276 <td> | 276 <td> |
277 Matches any URL that uses the <code>http</code> scheme, on any host, | 277 Matches any URL that uses the <code>http</code> scheme, on any host, |
278 as long as the path starts with <code>/foo</code> | 278 as long as the path starts with <code>/foo</code> |
279 </td> | 279 </td> |
280 | 280 |
281 <td> | 281 <td> |
282 http://example.com/foo/bar.html<br> | 282 http://example.com/foo/bar.html<br> |
283 http://www.google.com/foo<b></b> | 283 http://www.google.com/foo<b></b> |
284 </td> | 284 </td> |
285 </tr> | 285 </tr> |
286 | 286 |
287 <tr> | 287 <tr> |
288 <td> | 288 <td> |
289 <code>https://*.google.com/foo*bar </code> | 289 <code>https://*.google.com/foo*bar </code> |
290 </td> | 290 </td> |
291 | 291 |
292 <td> | 292 <td> |
293 Matches any URL that uses the <code>https</code> scheme, | 293 Matches any URL that uses the <code>https</code> scheme, |
294 is on a google.com host | 294 is on a google.com host |
295 (such as www.google.com, docs.google.com, or google.com), | 295 (such as www.google.com, docs.google.com, or google.com), |
296 as long as the path starts with <code>/foo</code> | 296 as long as the path starts with <code>/foo</code> |
297 and ends with <code>bar</code> | 297 and ends with <code>bar</code> |
298 </td> | 298 </td> |
299 | 299 |
300 <td> | 300 <td> |
301 http://www.google.com/foo/baz/bar<br> | 301 http://www.google.com/foo/baz/bar<br> |
302 http://docs.google.com/foobar | 302 http://docs.google.com/foobar |
303 </td> | 303 </td> |
304 </tr> | 304 </tr> |
305 | 305 |
306 <tr> | 306 <tr> |
307 <td> | 307 <td> |
308 <code>http://example.org/foo/bar.html </code> | 308 <code>http://example.org/foo/bar.html </code> |
309 </td> | 309 </td> |
310 | 310 |
311 <td>Matches the specified URL</td> | 311 <td>Matches the specified URL</td> |
312 | 312 |
313 <td> | 313 <td> |
314 http://example.org/foo/bar.html | 314 http://example.org/foo/bar.html |
315 </td> | 315 </td> |
316 </tr> | 316 </tr> |
317 | 317 |
318 <tr> | 318 <tr> |
319 <td> | 319 <td> |
320 <code>file:///foo*</code> | 320 <code>file:///foo*</code> |
321 </td> | 321 </td> |
322 | 322 |
323 <td>Matches any local file whose path starts with <code>/foo</code></td> | 323 <td>Matches any local file whose path starts with <code>/foo</code></td> |
324 | 324 |
325 <td> | 325 <td> |
326 file:///foo/bar.html<br> | 326 file:///foo/bar.html<br> |
327 file:///foo | 327 file:///foo |
328 </td> | 328 </td> |
329 </tr> | 329 </tr> |
330 | 330 |
331 <tr> | 331 <tr> |
332 <td> | 332 <td> |
333 <code>http://127.0.0.1/*</code> | 333 <code>http://127.0.0.1/*</code> |
334 </td> | 334 </td> |
335 | 335 |
336 <td> | 336 <td> |
337 Matches any URL that uses the <code>http</code> scheme | 337 Matches any URL that uses the <code>http</code> scheme |
338 and is on the host 127.0.0.1 | 338 and is on the host 127.0.0.1 |
339 </td> | 339 </td> |
340 <td> | 340 <td> |
341 http://127.0.0.1/<br> | 341 http://127.0.0.1/<br> |
342 http://127.0.0.1/foo/bar.html | 342 http://127.0.0.1/foo/bar.html |
343 </td> | 343 </td> |
344 </tr> | 344 </tr> |
345 </tbody> | 345 </tbody> |
346 </table> | 346 </table> |
347 | 347 |
348 <p> | 348 <p> |
349 Here are some examples of <em>invalid</em> pattern matches: | 349 Here are some examples of <em>invalid</em> pattern matches: |
350 </p> | 350 </p> |
351 | 351 |
352 <table> | 352 <table> |
353 <tbody> | 353 <tbody> |
354 <tr> | 354 <tr> |
355 <th>Bad pattern</th> | 355 <th>Bad pattern</th> |
356 <th>Why it's bad</th> | 356 <th>Why it's bad</th> |
357 </tr> | 357 </tr> |
358 | 358 |
359 <tr> | 359 <tr> |
360 <td><code>http://*</code></td> | 360 <td><code>http://*</code></td> |
361 <td>No <em>path</em></td> | 361 <td>No <em>path</em></td> |
362 </tr> | 362 </tr> |
363 | 363 |
364 <tr> | 364 <tr> |
365 <td><code>http://*foo/bar</code></td> | 365 <td><code>http://*foo/bar</code></td> |
366 <td>'*' in the <em>host</em> can be followed only by a '.' or '/'</td> | 366 <td>'*' in the <em>host</em> can be followed only by a '.' or '/'</td> |
367 </tr> | 367 </tr> |
368 | 368 |
369 <tr> | 369 <tr> |
370 <td><code>http://foo.*.bar/baz </code></td> | 370 <td><code>http://foo.*.bar/baz </code></td> |
371 <td>If '*' is in the <em>host</em>, it must be the first character</td> | 371 <td>If '*' is in the <em>host</em>, it must be the first character</td> |
372 </tr> | 372 </tr> |
373 | 373 |
374 <tr> | 374 <tr> |
375 <td><code>http:/bar</code></td> | 375 <td><code>http:/bar</code></td> |
376 <td>Missing <em>scheme</em> separator ("/" should be "//")</td> | 376 <td>Missing <em>scheme</em> separator ("/" should be "//")</td> |
377 </tr> | 377 </tr> |
378 | 378 |
379 <tr> | 379 <tr> |
380 <td><code>foo://*</code></td> | 380 <td><code>foo://*</code></td> |
381 <td>Invalid <em>scheme</em></td> | 381 <td>Invalid <em>scheme</em></td> |
382 </tr> | 382 </tr> |
383 </tbody> | 383 </tbody> |
384 </table> | 384 </table> |
385 | 385 |
386 </div> | 386 </div> |
387 | 387 |
388 <!-- API PAGE --> | 388 <!-- API PAGE --> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 <div id="pageFooter" --=""> | 532 <div id="pageFooter" --=""> |
533 <p> | 533 <p> |
534 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, | 534 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, |
535 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons | 535 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons |
536 Attribution 3.0 License</a>, and code samples are licensed under the | 536 Attribution 3.0 License</a>, and code samples are licensed under the |
537 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. | 537 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. |
538 </p> | 538 </p> |
539 <p> | 539 <p> |
540 ©2009 Google | 540 ©2009 Google |
541 </p> | 541 </p> |
| 542 |
| 543 <!-- begin analytics --> |
| 544 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"><
/script> |
| 545 <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></scr
ipt> |
| 546 |
| 547 <script type="text/javascript"> |
| 548 // chrome doc tracking |
| 549 try { |
| 550 var engdocs = _gat._getTracker("YT-10763712-2"); |
| 551 engdocs._trackPageview(); |
| 552 } catch(err) {} |
| 553 |
| 554 // code.google.com site-wide tracking |
| 555 try { |
| 556 _uacct="UA-18071-1"; |
| 557 _uanchor=1; |
| 558 _uff=0; |
| 559 urchinTracker(); |
| 560 } |
| 561 catch(e) {/* urchinTracker not available. */} |
| 562 </script> |
| 563 <!-- end analytics --> |
| 564 |
542 </div> <!-- /pageFooter --> | 565 </div> <!-- /pageFooter --> |
543 </div> <!-- /container --> | 566 </div> <!-- /container --> |
544 </body></html> | 567 </body></html> |
545 | 568 |
OLD | NEW |