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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/webRequest.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 <p id="classSummary">
2 Use the <code>chrome.webRequest</code> module to intercept, block,
3 or modify requests in-flight and to observe and analyze traffic.
4 </p>
5
6 <h2 id="manifest">Manifest</h2> 1 <h2 id="manifest">Manifest</h2>
7 <p>You must declare the "webRequest" permission in the <a 2 <p>You must declare the "webRequest" permission in the <a
8 href="manifest.html">extension manifest</a> to use the web request 3 href="manifest.html">extension manifest</a> to use the web request
9 API, along with <a href="declare_permissions.html">host permissions</a> 4 API, along with <a href="declare_permissions.html">host permissions</a>
10 for any hosts whose network requests you want to access. If you want to 5 for any hosts whose network requests you want to access. If you want to
11 use the web request API in a blocking fashion, you need to request 6 use the web request API in a blocking fashion, you need to request
12 the "webRequestBlocking" permission in addition. 7 the "webRequestBlocking" permission in addition.
13 For example:</p> 8 For example:</p>
14 <pre>{ 9 <pre>{
15 "name": "My extension", 10 "name": "My extension",
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 285 }
291 } 286 }
292 return {requestHeaders: details.requestHeaders}; 287 return {requestHeaders: details.requestHeaders};
293 }, 288 },
294 {urls: ["&lt;all_urls&gt;"]}, 289 {urls: ["&lt;all_urls&gt;"]},
295 ["blocking", "requestHeaders"]); 290 ["blocking", "requestHeaders"]);
296 </pre> 291 </pre>
297 292
298 <p> For more example code, see the <a href="samples.html#webrequest">web request 293 <p> For more example code, see the <a href="samples.html#webrequest">web request
299 samples</a>.</p> 294 samples</a>.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698