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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html

Issue 11185056: Adding stages for request headers and 3rd party attributes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <h2 id="notes">Notes</h2> 1 <h2 id="notes">Notes</h2>
2 2
3 <p> 3 <p>
4 Use the <code>chrome.declarativeWebRequest</code> module to intercept, block, or 4 Use the <code>chrome.declarativeWebRequest</code> module to intercept, block, or
5 modify requests in-flight. It is significantly faster than the <a 5 modify requests in-flight. It is significantly faster than the <a
6 href="webRequest.html"><code>chrome.webRequest</code> API</a> because you can 6 href="webRequest.html"><code>chrome.webRequest</code> API</a> because you can
7 register rules that are evaluated in the browser rather than the 7 register rules that are evaluated in the browser rather than the
8 JavaScript engine which reduces roundtrip latencies and allows for very high 8 JavaScript engine which reduces roundtrip latencies and allows for very high
9 efficiency. 9 efficiency.
10 </p> 10 </p>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 <th>onBeforeSendHeaders 132 <th>onBeforeSendHeaders
133 <th>onHeadersReceived 133 <th>onHeadersReceived
134 <th>onAuthRequired 134 <th>onAuthRequired
135 </tr> 135 </tr>
136 <tr><td>url<td>✓<td>✓<td>✓<td>✓ 136 <tr><td>url<td>✓<td>✓<td>✓<td>✓
137 <tr><td>resourceType<td>✓<td>✓<td>✓<td>✓ 137 <tr><td>resourceType<td>✓<td>✓<td>✓<td>✓
138 <tr><td>contentType<td><td><td>✓<td> 138 <tr><td>contentType<td><td><td>✓<td>
139 <tr><td>excludeContentType<td><td><td>✓<td> 139 <tr><td>excludeContentType<td><td><td>✓<td>
140 <tr><td>responseHeaders<td><td><td>✓<td> 140 <tr><td>responseHeaders<td><td><td>✓<td>
141 <tr><td>excludeResponseHeaders<td><td><td>✓<td> 141 <tr><td>excludeResponseHeaders<td><td><td>✓<td>
142 <tr><td>requestHeaders<td><td>✓<td><td>
vabr (Chromium) 2012/10/18 17:54:35 I just appended all at the end, as it has not been
143 <tr><td>excludeRequestHeaders<td><td>✓<td><td>
144 <tr><td>thirdPartyForCookies<td>✓<td>✓<td>✓<td>✓
142 <tr> 145 <tr>
143 <th colspan="5" style="padding-top:2em">Request stages during which actions can be executed. 146 <th colspan="5" style="padding-top:2em">Request stages during which actions can be executed.
144 </tr> 147 </tr>
145 <tr> 148 <tr>
146 <th>Event 149 <th>Event
147 <th>onBeforeRequest 150 <th>onBeforeRequest
148 <th>onBeforeSendHeaders 151 <th>onBeforeSendHeaders
149 <th>onHeadersReceived 152 <th>onHeadersReceived
150 <th>onAuthRequired 153 <th>onAuthRequired
151 </tr> 154 </tr>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 chrome.declarativeWebRequest.onRequest.addRules([rule1, rule2]); 216 chrome.declarativeWebRequest.onRequest.addRules([rule1, rule2]);
214 </pre> 217 </pre>
215 218
216 <p> 219 <p>
217 It is important to recognize that the <code>IgnoreRules</code> action is not 220 It is important to recognize that the <code>IgnoreRules</code> action is not
218 persisted across <a href="#evaluation">request stages</a>. All conditions of 221 persisted across <a href="#evaluation">request stages</a>. All conditions of
219 all rules are evaluated at each stage of a web request. If an 222 all rules are evaluated at each stage of a web request. If an
220 <code>IgnoreRules</code> action is executed, it applies only to other actions 223 <code>IgnoreRules</code> action is executed, it applies only to other actions
221 that are executed for the same web request in the same stage. 224 that are executed for the same web request in the same stage.
222 </p> 225 </p>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698