Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8511)

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 6468002: Implementation of getCurrentProxySettings for proxy settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/out/Debug
Patch Set: Removed todo and ask mpcomplete now. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.cc ('k') | chrome/common/extensions/docs/experimental.proxy.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index f3582aa795357c2d07b1bc5f8cd20b9a45d3755d..7b49a2331b248bdbccf3965d733c58efc01901a8 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -3743,7 +3743,7 @@
"type": "object",
"description": "An object encapsulating a single proxy server's specification.",
"properties": {
- "scheme": {"type": "string", "optional": true, "enum": ["http", "socks", "socks4", "socks5"], "description": "The scheme (protocol) of the proxy server itself."},
+ "scheme": {"type": "string", "optional": true, "enum": ["http", "https", "socks", "socks4", "socks5"], "description": "The scheme (protocol) of the proxy server itself."},
"host": {"type": "string", "description": "The URI of the proxy server."},
"port": {"type": "integer", "optional": true, "description": "The port of the proxy server."}
}
@@ -3813,6 +3813,29 @@
"optional": true
}
]
+ },
+ {
+ "name": "getCurrentProxySettings",
+ "type": "function",
+ "description": "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": [
+ {
+ "name": "incognito",
+ "type": "boolean",
+ "description": "See incognito parameter of useCustomProxySettings."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "config",
+ "$ref": "ProxyConfig",
+ "description": "Configuration, not necessarily a literal copy of the configuration passed to useCustomProxySettings."
+ }
+ ]
+ }
+ ]
}
]
},
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.cc ('k') | chrome/common/extensions/docs/experimental.proxy.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698