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
getCurrentProxySettings
void
chrome.experimental.proxy.getCurrentProxySettings(, boolean
incognito, function
callback)
Undocumented.
Returns the currently effective proxy settings. These can originate from default values, command line options, the extension settings API, policies and possibly other sources in the future.
Parameters
-
incognito
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- See incognito parameter of useCustomProxySettings.
-
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.
-
-
-
-
-
callback
(
optional
enumerated
Type
array of
function
)
-
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(ProxyConfig config) {...};
-
config
-
Undocumented.
- Configuration, not necessarily a literal copy of the configuration passed to useCustomProxySettings.
-
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.
-
-
-
-
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.
removeCustomProxySettings
void
chrome.experimental.proxy.removeCustomProxySettings(, boolean
incognito)
Undocumented.
Remove a custom proxy set by the current extension. This is the inverse of useCustomProxySettings.
Parameters
-
incognito
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- See incognito parameter of useCustomProxySettings.
-
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.
useCustomProxySettings
void
chrome.experimental.proxy.useCustomProxySettings(, ProxyConfig
config, boolean
incognito)
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.
-
-
-
-
-
incognito
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- If true, the proxy settings apply only to incognito windows. Otherwise they apply to regular windows (and incognito windows if no specific settings are provided for incognito windows)
-
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.
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", "https", "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. Use either 'singleProxy' or (a subset of) 'proxyForHttp', 'proxyForHttps', 'proxyForFtp' and 'socksProxy'.
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.
-
-
-
-
-
bypassList
(
optional
enumerated
Type
array of
Type
array of
string
paramType
)
-
Undocumented.
- List of servers to connect to without a 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.
-
-
-
-
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. Use this for 'fixed_servers' mode.
-
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. Use this for 'pac_script' mode.
-
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.
-
-
-
-