| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 ... | 276 ... |
| 277 <b> "permissions": [ | 277 <b> "permissions": [ |
| 278 "declarative", | 278 "declarative", |
| 279 "declarativeWebRequest", | 279 "declarativeWebRequest", |
| 280 "*://*.google.com" | 280 "*://*.google.com" |
| 281 ]</b>, | 281 ]</b>, |
| 282 ... | 282 ... |
| 283 }</pre> | 283 }</pre> |
| 284 <h2 id="rules">Rules</h2> | 284 <h2 id="rules">Rules</h2> |
| 285 <p> | 285 <p> |
| 286 The Declarative Web Request API follows the concepts of the <a href="declarative
.html">Declarative API</a>. You can register rules to the | 286 The Declarative Web Request API follows the concepts of the <a href="events.html
#declarative">Declarative API</a>. You can register rules to |
| 287 <code>chrome.declarativeWebRequest.onRequest</code> event object. | 287 the <code>chrome.declarativeWebRequest.onRequest</code> event object. |
| 288 </p> | 288 </p> |
| 289 <p> | 289 <p> |
| 290 The Declarative Web Request API supports a single type of match criteria, the | 290 The Declarative Web Request API supports a single type of match criteria, the |
| 291 <code>RequestMatcher</code>. The <code>RequestMatcher</code> matches network | 291 <code>RequestMatcher</code>. The <code>RequestMatcher</code> matches network |
| 292 requests if and only if all listed criteria are met. The following | 292 requests if and only if all listed criteria are met. The following |
| 293 <code>RequestMatcher</code> would match a network request when the user enters | 293 <code>RequestMatcher</code> would match a network request when the user enters |
| 294 "http://www.example.com" in the URL bar: | 294 "http://www.example.com" in the URL bar: |
| 295 </p> | 295 </p> |
| 296 <pre>var matcher = new chrome.declarativeWebRequest.RequestMatcher({ | 296 <pre>var matcher = new chrome.declarativeWebRequest.RequestMatcher({ |
| 297 url: { hostSuffix: 'example.com', schemes: ['http'] }, | 297 url: { hostSuffix: 'example.com', schemes: ['http'] }, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 <div> | 446 <div> |
| 447 <dt> | 447 <dt> |
| 448 <var>url</var> | 448 <var>url</var> |
| 449 <em> | 449 <em> |
| 450 <!-- TYPE --> | 450 <!-- TYPE --> |
| 451 <div style="display:inline"> | 451 <div style="display:inline"> |
| 452 ( | 452 ( |
| 453 <span class="optional">optional</span> | 453 <span class="optional">optional</span> |
| 454 <span id="typeTemplate"> | 454 <span id="typeTemplate"> |
| 455 <span> | 455 <span> |
| 456 <a>declarative.UrlFilter</a> | 456 <a>events.UrlFilter</a> |
| 457 </span> | 457 </span> |
| 458 </span> | 458 </span> |
| 459 ) | 459 ) |
| 460 </div> | 460 </div> |
| 461 </em> | 461 </em> |
| 462 </dt> | 462 </dt> |
| 463 <dd>Matches if the condition of the UrlFilter are fulfilled for the UR
L of the request.</dd> | 463 <dd>Matches if the condition of the UrlFilter are fulfilled for the UR
L of the request.</dd> |
| 464 <!-- OBJECT PROPERTIES --> | 464 <!-- OBJECT PROPERTIES --> |
| 465 <!-- OBJECT METHODS --> | 465 <!-- OBJECT METHODS --> |
| 466 <!-- OBJECT EVENT FIELDS --> | 466 <!-- OBJECT EVENT FIELDS --> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 _uff=0; | 699 _uff=0; |
| 700 urchinTracker(); | 700 urchinTracker(); |
| 701 } | 701 } |
| 702 catch(e) {/* urchinTracker not available. */} | 702 catch(e) {/* urchinTracker not available. */} |
| 703 </script> | 703 </script> |
| 704 <!-- end analytics --> | 704 <!-- end analytics --> |
| 705 </div> | 705 </div> |
| 706 </div> <!-- /gc-footer --> | 706 </div> <!-- /gc-footer --> |
| 707 </div> <!-- /gc-container --> | 707 </div> <!-- /gc-container --> |
| 708 </body></html> | 708 </body></html> |
| OLD | NEW |