summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/web_socket_proxy_controller.h
diff options
context:
space:
mode:
authordilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 16:04:43 +0000
committerdilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 16:04:43 +0000
commit749756bb44d5b4d91a130377b04f9ce1e6d4bb7e (patch)
treeadb9488f7b6bff1f43b1c5f19e4c23a7b544fe9b /chrome/browser/chromeos/web_socket_proxy_controller.h
parentaa6b0211104ed683394cbe6924f6d60b51cd429c (diff)
downloadchromium_src-749756bb44d5b4d91a130377b04f9ce1e6d4bb7e.zip
chromium_src-749756bb44d5b4d91a130377b04f9ce1e6d4bb7e.tar.gz
chromium_src-749756bb44d5b4d91a130377b04f9ce1e6d4bb7e.tar.bz2
websocket-to-TCP proxy: observe value of listening port in right place.
Also minor change for new API: increase timeout for waiting WEB_SOCKET_PROXY_STARTED notification. New API (GetURLForTCP as opposed to GetPassportForTCP) runs on ephemeral port so if port is not known then we cannot construct URL at all. 3 seconds may be too little to launch proxy on slow overloaded machine. BUG=chromium-os:21942 TEST=Manual+Apitest Review URL: http://codereview.chromium.org/8362027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/web_socket_proxy_controller.h')
-rw-r--r--chrome/browser/chromeos/web_socket_proxy_controller.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/web_socket_proxy_controller.h b/chrome/browser/chromeos/web_socket_proxy_controller.h
index bcee38e..4e8ad0d 100644
--- a/chrome/browser/chromeos/web_socket_proxy_controller.h
+++ b/chrome/browser/chromeos/web_socket_proxy_controller.h
@@ -29,6 +29,7 @@ class WebSocketProxyController {
// All methods can be called on any thread.
static void Shutdown();
static bool IsInitiated();
+ static int GetPort(); // Returns port listening websocket connections.
static bool CheckCredentials(
const std::string& extension_id,