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

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

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment in converter.py Created 8 years, 4 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
OLDNEW
1 <!-- BEGIN AUTHORED CONTENT -->
2 <p id="classSummary"> 1 <p id="classSummary">
3 Use the <code>chrome.webRequest</code> module to intercept, block, 2 Use the <code>chrome.webRequest</code> module to intercept, block,
4 or modify requests in-flight and to observe and analyze traffic. 3 or modify requests in-flight and to observe and analyze traffic.
5 </p> 4 </p>
6 <h2 id="manifest">Manifest</h2> 5 <h2 id="manifest">Manifest</h2>
7 <p>You must declare the "webRequest" permission in the <a 6 <p>You must declare the "webRequest" permission in the <a
8 href="manifest.html">extension manifest</a> to use the web request 7 href="manifest.html">extension manifest</a> to use the web request
9 API, along with <a href="manifest.html#permissions">host permissions</a> 8 API, along with <a href="manifest.html#permissions">host permissions</a>
10 for any hosts whose network requests you want to access. If you want to 9 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 10 use the web request API in a blocking fashion, you need to request
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 details.requestHeaders.splice(i, 1); 264 details.requestHeaders.splice(i, 1);
266 break; 265 break;
267 } 266 }
268 } 267 }
269 return {requestHeaders: details.requestHeaders}; 268 return {requestHeaders: details.requestHeaders};
270 }, 269 },
271 {urls: ["&lt;all_urls&gt;"]}, 270 {urls: ["&lt;all_urls&gt;"]},
272 ["blocking", "requestHeaders"]); 271 ["blocking", "requestHeaders"]);
273 </pre> 272 </pre>
274 <p> For more example code, see the <a href="samples.html#webrequest">web request 273 <p> For more example code, see the <a href="samples.html#webrequest">web request
275 samples</a>.</p> 274 samples</a>.</p>
276 <!-- END AUTHORED CONTENT -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698