| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">WebRequest API</div> | 1 <div id="pageData-name" class="pageData">WebRequest API</div> |
| 2 | 2 |
| 3 <!-- BEGIN AUTHORED CONTENT --> | 3 <!-- BEGIN AUTHORED CONTENT --> |
| 4 <p id="classSummary"> | 4 <p id="classSummary"> |
| 5 Use the <code>chrome.webRequest</code> module to intercept, block, | 5 Use the <code>chrome.webRequest</code> module to intercept, block, |
| 6 or modify requests in-flight. This module is still experimental. For | 6 or modify requests in-flight. This module is still experimental. For |
| 7 information on how to use experimental APIs, see the | 7 information on how to use experimental APIs, see the |
| 8 <a href="experimental.html">chrome.experimental.* APIs</a> page. | 8 <a href="experimental.html">chrome.experimental.* APIs</a> page. |
| 9 </p> | 9 </p> |
| 10 | 10 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 <p>Depending on the specific signal, <code>opt_extraInfoSpec</code> may contain | 188 <p>Depending on the specific signal, <code>opt_extraInfoSpec</code> may contain |
| 189 further strings that indicate that specific information shall be passed to the | 189 further strings that indicate that specific information shall be passed to the |
| 190 extension. This is used to provide detailed information on requests data only if | 190 extension. This is used to provide detailed information on requests data only if |
| 191 explicitly requested.</p> | 191 explicitly requested.</p> |
| 192 | 192 |
| 193 <p>The optional <a href="#type-RequestFilter">RequestFilter</a> | 193 <p>The optional <a href="#type-RequestFilter">RequestFilter</a> |
| 194 <code>opt_filter</code> allows to limit the requests for which events are | 194 <code>opt_filter</code> allows to limit the requests for which events are |
| 195 triggered in various dimensions: | 195 triggered in various dimensions: |
| 196 <dl> | 196 <dl> |
| 197 <dt>URLs</dt> | 197 <dt>URLs</dt> |
| 198 <dd>URL patterns like <code>*://www.google.com/foo*bar</code>.</dd> | 198 <dd><a href="match_patterns.html">URL patterns</a> like |
| 199 <code>*://www.google.com/foo*bar</code>.</dd> |
| 199 <dt>Types</dt> | 200 <dt>Types</dt> |
| 200 <dd>Request types like <code>main_frame</code> (a document that is loaded for | 201 <dd>Request types like <code>main_frame</code> (a document that is loaded for |
| 201 a top-level frame), <code>sub_frame</code> (a document that is loaded for an | 202 a top-level frame), <code>sub_frame</code> (a document that is loaded for an |
| 202 embedded frame), <code>image</code> (an image on a web site) and others. See | 203 embedded frame), <code>image</code> (an image on a web site) and others. See |
| 203 <a href="#type-RequestFilter">RequestFilter</a>.</dd> | 204 <a href="#type-RequestFilter">RequestFilter</a>.</dd> |
| 204 <dt>Tab IDs</dt> | 205 <dt>Tab IDs</dt> |
| 205 <dd>The ID that identifies a specific tab in a window.</dd> | 206 <dd>The ID that identifies a specific tab in a window.</dd> |
| 206 <dt>Window IDs</dt> | 207 <dt>Window IDs</dt> |
| 207 <dd>The ID that identifies a specific window.</dd> | 208 <dd>The ID that identifies a specific window.</dd> |
| 208 </p> | 209 </p> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // Attention: The frameUrl can be undefined in some cases. Requests may not | 316 // Attention: The frameUrl can be undefined in some cases. Requests may not |
| 316 // originate from a frame (e.g. requests from extensions or shared workers). | 317 // originate from a frame (e.g. requests from extensions or shared workers). |
| 317 }); | 318 }); |
| 318 | 319 |
| 319 chrome.windows.onRemoved.addListener( | 320 chrome.windows.onRemoved.addListener( |
| 320 function(windowId) {delete frameUrl[windowId];} | 321 function(windowId) {delete frameUrl[windowId];} |
| 321 ); | 322 ); |
| 322 </pre> | 323 </pre> |
| 323 --> | 324 --> |
| 324 <!-- END AUTHORED CONTENT --> | 325 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |