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

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

Issue 10824041: Delete "declarative" permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 --> 1 <!-- BEGIN AUTHORED CONTENT -->
2 2
3 <h2 id="notes">Notes</h2> 3 <h2 id="notes">Notes</h2>
4 4
5 <p> 5 <p>
6 Use the <code>chrome.declarativeWebRequest</code> module to intercept, block, or 6 Use the <code>chrome.declarativeWebRequest</code> module to intercept, block, or
7 modify requests in-flight. It is significantly faster than the <a 7 modify requests in-flight. It is significantly faster than the <a
8 href="webRequest.html"><code>chrome.webRequest</code> API</a> because you can 8 href="webRequest.html"><code>chrome.webRequest</code> API</a> because you can
9 register rules that are evaluated in the browser rather than the 9 register rules that are evaluated in the browser rather than the
10 JavaScript engine which reduces roundtrip latencies and allows for very high 10 JavaScript engine which reduces roundtrip latencies and allows for very high
11 efficiency. 11 efficiency.
12 </p> 12 </p>
13 13
14 <h2 id="manifest">Manifest</h2> 14 <h2 id="manifest">Manifest</h2>
15 15
16 <p> 16 <p>
17 You must declare the "declarative" and the "declarativeWebRequest" permission in 17 You must declare the "declarative" and the "declarativeWebRequest" permission in
18 the <a href="manifest.html">extension manifest</a> to use this API, 18 the <a href="manifest.html">extension manifest</a> to use this API,
19 along with <a href="manifest.html#permissions">host permissions</a> for any 19 along with <a href="manifest.html#permissions">host permissions</a> for any
20 hosts whose network requests you want to access. 20 hosts whose network requests you want to access.
21 </p> 21 </p>
22 22
23 <pre>{ 23 <pre>{
24 "name": "My extension", 24 "name": "My extension",
25 ... 25 ...
26 <b> "permissions": [ 26 <b> "permissions": [
27 "declarative",
28 "declarativeWebRequest", 27 "declarativeWebRequest",
29 "*://*.google.com" 28 "*://*.google.com"
30 ]</b>, 29 ]</b>,
31 ... 30 ...
32 }</pre> 31 }</pre>
33 32
34 <h2 id="rules">Rules</h2> 33 <h2 id="rules">Rules</h2>
35 34
36 <p> 35 <p>
37 The Declarative Web Request API follows the concepts of the <a 36 The Declarative Web Request API follows the concepts of the <a
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 <h2 id="TODO">Todo</h2> 114 <h2 id="TODO">Todo</h2>
116 <ul> 115 <ul>
117 <li>Explain precedences, once we can ignore rules based on their priority 116 <li>Explain precedences, once we can ignore rules based on their priority
118 (e.g. how can I cancel all requests except for a specific whitelist?) 117 (e.g. how can I cancel all requests except for a specific whitelist?)
119 <li>Explain when conditions can be evaluated, when actions can be executed, 118 <li>Explain when conditions can be evaluated, when actions can be executed,
120 and when rules can be executed (e.g. you cannot cancel a request when you 119 and when rules can be executed (e.g. you cannot cancel a request when you
121 have received the response already) 120 have received the response already)
122 </ul> 121 </ul>
123 122
124 <!-- END AUTHORED CONTENT --> 123 <!-- END AUTHORED CONTENT -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698