OLD | NEW |
1 <div id="pageData-name" class="pageData">Proxy Settings</div> | |
2 | |
3 <!-- BEGIN AUTHORED CONTENT --> | |
4 <p id="classSummary"> | 1 <p id="classSummary"> |
5 Use the <code>chrome.proxy</code> module to manage Chrome's | 2 Use the <code>chrome.proxy</code> module to manage Chrome's |
6 proxy settings. This module relies on the <a href="types.html#ChromeSetting"> | 3 proxy settings. This module relies on the <a href="types.html#ChromeSetting"> |
7 ChromeSetting prototype of the type API</a> for getting and setting the proxy | 4 ChromeSetting prototype of the type API</a> for getting and setting the proxy |
8 configuration. | 5 configuration. |
9 </p> | 6 </p> |
10 | 7 |
11 <h2 id="manifest">Manifest</h2> | 8 <h2 id="manifest">Manifest</h2> |
12 <p>You must declare the "proxy" permission | 9 <p>You must declare the "proxy" permission |
13 in the <a href="manifest.html">extension manifest</a> | 10 in the <a href="manifest.html">extension manifest</a> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 chrome.proxy.settings.get( | 204 chrome.proxy.settings.get( |
208 {'incognito': false}, | 205 {'incognito': false}, |
209 function(config) {console.log(JSON.stringify(config));}); | 206 function(config) {console.log(JSON.stringify(config));}); |
210 </pre> | 207 </pre> |
211 | 208 |
212 <p> | 209 <p> |
213 Note that the <code>value</code> object passed to <code>set()</code> is not | 210 Note that the <code>value</code> object passed to <code>set()</code> is not |
214 identical to the <code>value</code> object passed to callback function of | 211 identical to the <code>value</code> object passed to callback function of |
215 <code>get()</code>. The latter will contain a | 212 <code>get()</code>. The latter will contain a |
216 <code>rules.proxyForHttp.port</code> element. | 213 <code>rules.proxyForHttp.port</code> element. |
217 </p> | 214 </p> |
218 | |
219 <!-- END AUTHORED CONTENT --> | |
OLD | NEW |