OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "proxy", | 7 "namespace": "proxy", |
8 "description": "Use the <code>chrome.proxy</code> API to manage Chrome's pro
xy settings. This API relies on the <a href='types.html#ChromeSetting'>ChromeSet
ting prototype of the type API</a> for getting and setting the proxy configurati
on.", | 8 "description": "Use the <code>chrome.proxy</code> API to manage Chrome's pro
xy settings. This API relies on the <a href='types.html#ChromeSetting'>ChromeSet
ting prototype of the type API</a> for getting and setting the proxy configurati
on.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
11 "id": "ProxyServer", | 11 "id": "ProxyServer", |
12 "type": "object", | 12 "type": "object", |
13 "description": "An object encapsulating a single proxy server's specific
ation.", | 13 "description": "An object encapsulating a single proxy server's specific
ation.", |
14 "properties": { | 14 "properties": { |
15 "scheme": {"type": "string", "optional": true, "enum": ["http", "https
", "socks4", "socks5"], "description": "The scheme (protocol) of the proxy serve
r itself. Defaults to 'http'."}, | 15 "scheme": {"type": "string", "optional": true, "enum": ["http", "https
", "quic", "socks4", "socks5"], "description": "The scheme (protocol) of the pro
xy server itself. Defaults to 'http'."}, |
16 "host": {"type": "string", "description": "The URI of the proxy server
. This must be an ASCII hostname (in Punycode format). IDNA is not supported, ye
t."}, | 16 "host": {"type": "string", "description": "The URI of the proxy server
. This must be an ASCII hostname (in Punycode format). IDNA is not supported, ye
t."}, |
17 "port": {"type": "integer", "optional": true, "description": "The port
of the proxy server. Defaults to a port that depends on the scheme."} | 17 "port": {"type": "integer", "optional": true, "description": "The port
of the proxy server. Defaults to a port that depends on the scheme."} |
18 } | 18 } |
19 }, | 19 }, |
20 { | 20 { |
21 "id": "ProxyRules", | 21 "id": "ProxyRules", |
22 "type": "object", | 22 "type": "object", |
23 "description": "An object encapsulating the set of proxy rules for all p
rotocols. Use either 'singleProxy' or (a subset of) 'proxyForHttp', 'proxyForHtt
ps', 'proxyForFtp' and 'fallbackProxy'.", | 23 "description": "An object encapsulating the set of proxy rules for all p
rotocols. Use either 'singleProxy' or (a subset of) 'proxyForHttp', 'proxyForHtt
ps', 'proxyForFtp' and 'fallbackProxy'.", |
24 "properties": { | 24 "properties": { |
25 "singleProxy": {"$ref": "ProxyServer", "optional": true, "description"
: "The proxy server to be used for all per-URL requests (that is http, https, an
d ftp)."}, | 25 "singleProxy": {"$ref": "ProxyServer", "optional": true, "description"
: "The proxy server to be used for all per-URL requests (that is http, https, an
d ftp)."}, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 "type": "string", | 87 "type": "string", |
88 "description": "Additional details about the error such as a Jav
aScript runtime error." | 88 "description": "Additional details about the error such as a Jav
aScript runtime error." |
89 } | 89 } |
90 } | 90 } |
91 } | 91 } |
92 ] | 92 ] |
93 } | 93 } |
94 ] | 94 ] |
95 } | 95 } |
96 ] | 96 ] |
OLD | NEW |