OLD | NEW |
1 <p id="classSummary"> | |
2 Use the <code>chrome.proxy</code> module to manage Chrome's | |
3 proxy settings. This module relies on the <a href="types.html#ChromeSetting"> | |
4 ChromeSetting prototype of the type API</a> for getting and setting the proxy | |
5 configuration. | |
6 </p> | |
7 | |
8 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
9 <p>You must declare the "proxy" permission | 2 <p>You must declare the "proxy" permission |
10 in the <a href="manifest.html">extension manifest</a> | 3 in the <a href="manifest.html">extension manifest</a> |
11 to use the proxy settings API. | 4 to use the proxy settings API. |
12 For example:</p> | 5 For example:</p> |
13 <pre>{ | 6 <pre>{ |
14 "name": "My extension", | 7 "name": "My extension", |
15 ... | 8 ... |
16 <b>"permissions": [ | 9 <b>"permissions": [ |
17 "proxy" | 10 "proxy" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 {'incognito': false}, | 223 {'incognito': false}, |
231 function(config) {console.log(JSON.stringify(config));}); | 224 function(config) {console.log(JSON.stringify(config));}); |
232 </pre> | 225 </pre> |
233 | 226 |
234 <p> | 227 <p> |
235 Note that the <code>value</code> object passed to <code>set()</code> is not | 228 Note that the <code>value</code> object passed to <code>set()</code> is not |
236 identical to the <code>value</code> object passed to callback function of | 229 identical to the <code>value</code> object passed to callback function of |
237 <code>get()</code>. The latter will contain a | 230 <code>get()</code>. The latter will contain a |
238 <code>rules.proxyForHttp.port</code> element. | 231 <code>rules.proxyForHttp.port</code> element. |
239 </p> | 232 </p> |
OLD | NEW |