| OLD | NEW |
| 1 <!-- BEGIN AUTHORED CONTENT --> | |
| 2 <p id="classSummary"> | 1 <p id="classSummary"> |
| 3 Use the <code>chrome.proxy</code> module to manage Chrome's | 2 Use the <code>chrome.proxy</code> module to manage Chrome's |
| 4 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"> |
| 5 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 |
| 6 configuration. | 5 configuration. |
| 7 </p> | 6 </p> |
| 8 <h2 id="manifest">Manifest</h2> | 7 <h2 id="manifest">Manifest</h2> |
| 9 <p>You must declare the "proxy" permission | 8 <p>You must declare the "proxy" permission |
| 10 in the <a href="manifest.html">extension manifest</a> | 9 in the <a href="manifest.html">extension manifest</a> |
| 11 to use the proxy settings API. | 10 to use the proxy settings API. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 <pre> | 175 <pre> |
| 177 chrome.proxy.settings.get( | 176 chrome.proxy.settings.get( |
| 178 {'incognito': false}, | 177 {'incognito': false}, |
| 179 function(config) {console.log(JSON.stringify(config));}); | 178 function(config) {console.log(JSON.stringify(config));}); |
| 180 </pre> | 179 </pre> |
| 181 <p> | 180 <p> |
| 182 Note that the <code>value</code> object passed to <code>set()</code> is not | 181 Note that the <code>value</code> object passed to <code>set()</code> is not |
| 183 identical to the <code>value</code> object passed to callback function of | 182 identical to the <code>value</code> object passed to callback function of |
| 184 <code>get()</code>. The latter will contain a | 183 <code>get()</code>. The latter will contain a |
| 185 <code>rules.proxyForHttp.port</code> element. | 184 <code>rules.proxyForHttp.port</code> element. |
| 186 </p> | 185 </p> |
| 187 <!-- END AUTHORED CONTENT --> | |
| OLD | NEW |