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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments - Patch currently being broken up Created 7 years, 6 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
OLDNEW
1 <h2 id="notes">Notes</h2>
2
3 <p>
4 Use the <code>chrome.declarativeWebRequest</code> module to intercept, block, or
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
7 register rules that are evaluated in the browser rather than the
8 JavaScript engine which reduces roundtrip latencies and allows very high
9 efficiency.
10 </p>
11
12 <h2 id="manifest">Manifest</h2> 1 <h2 id="manifest">Manifest</h2>
13 2
14 <p> 3 <p>
15 You must declare the "declarativeWebRequest" permission in the 4 You must declare the "declarativeWebRequest" permission in the
16 <a href="manifest.html">extension manifest</a> to use this API, 5 <a href="manifest.html">extension manifest</a> to use this API,
17 along with <a href="declare_permissions.html">host permissions</a>. 6 along with <a href="declare_permissions.html">host permissions</a>.
18 </p> 7 </p>
19 8
20 <pre>{ 9 <pre>{
21 "name": "My extension", 10 "name": "My extension",
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 chrome.declarativeWebRequest.onRequest.addRules([rule1, rule2]); 240 chrome.declarativeWebRequest.onRequest.addRules([rule1, rule2]);
252 </pre> 241 </pre>
253 242
254 <p> 243 <p>
255 It is important to recognize that the <code>IgnoreRules</code> action is not 244 It is important to recognize that the <code>IgnoreRules</code> action is not
256 persisted across <a href="#evaluation">request stages</a>. All conditions of 245 persisted across <a href="#evaluation">request stages</a>. All conditions of
257 all rules are evaluated at each stage of a web request. If an 246 all rules are evaluated at each stage of a web request. If an
258 <code>IgnoreRules</code> action is executed, it applies only to other actions 247 <code>IgnoreRules</code> action is executed, it applies only to other actions
259 that are executed for the same web request in the same stage. 248 that are executed for the same web request in the same stage.
260 </p> 249 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698