chrome.experimental.proxy
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
API reference: chrome.experimental.proxy
Properties
getLastError
chrome.extensionlastError
Methods
useCustomProxySettings
void
chrome.experimental.proxy.useCustomProxySettings(, ProxyConfig
config)
Undocumented.
Apply the given proxy configuration.
Parameters
-
config
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(Type param1, Type param2) {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
event name
chrome.bookmarksonEvent.addListener(function(Type param1, Type param2) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
Types
ProxyServer
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
An object encapsulating a single proxy server's specification.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
scheme
(
optional
enumerated
Type
array of
string
["http", "socks", "socks4", "socks5"]
)
-
Undocumented.
- The scheme (protocol) of the proxy server itself.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
host
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The URI of the proxy server.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
port
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The port of the proxy server.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
ProxyRules
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
An object encapsulating the set of proxy rules for all protocols.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
singleProxy
-
Undocumented.
- The proxy server to be used for all per-URL requests (i.e., http, https, and ftp).
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
proxyForHttp
-
Undocumented.
- The proxy server to be used for HTTP requests.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
proxyForHttps
-
Undocumented.
- The proxy server to be used for HTTPS requests.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
proxyForFtp
-
Undocumented.
- The proxy server to be used for FTP requests.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
socksProxy
-
Undocumented.
- The proxy server to be used for SOCKS requests.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
PacScript
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
An object holding proxy auto-config information. Only one of the fields should be non-empty.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- URL of he PAC file to be used.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
ProxyConfig
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
An object encapsulating a complete proxy configuration.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
rules
(
optional
enumerated
ProxyRules
array of
paramType
)
-
Undocumented.
- The proxy rules describing this configuration.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
pacScript
(
optional
enumerated
PacScript
array of
paramType
)
-
Undocumented.
- The proxy auto-config (PAC) script for this configuration.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
mode
(
optional
enumerated
Type
array of
string
["direct", "auto_detect", "pac_script", "fixed_servers", "system"]
)
-
Undocumented.
- 'direct' = Never use a proxy
'auto_detect' = Auto detect proxy settings
'pac_script' = Use specified PAC script
'fixed_servers' = Manually specify proxy servers
'system' = Use system proxy settings
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-