Index: chrome/browser/chromeos/web_socket_proxy_controller.h |
diff --git a/chrome/browser/chromeos/web_socket_proxy_controller.h b/chrome/browser/chromeos/web_socket_proxy_controller.h |
index e5749e7224c63d16fb17a85dc0f3aeacead44309..f96fedc4e0d4c9944d099ec839722ad934627fff 100644 |
--- a/chrome/browser/chromeos/web_socket_proxy_controller.h |
+++ b/chrome/browser/chromeos/web_socket_proxy_controller.h |
@@ -6,17 +6,30 @@ |
#define CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_CONTROLLER_H_ |
#pragma once |
+#include <string> |
+ |
namespace chromeos { |
// Controls webproxy to TCP service. |
class WebSocketProxyController { |
public: |
+ enum ConnectionFlags { |
+ PLAIN_TCP = 0, |
+ TLS_OVER_TCP = 1 << 0 |
+ }; |
+ |
// Can be called on any thread. Subsequent calls are cheap and do nothing. |
static void Initiate(); |
// All methods can be called on any thread. |
static void Shutdown(); |
static bool IsInitiated(); |
+ |
+ static bool CheckCredentials( |
+ const std::string& extension_id, |
+ const std::string& hostname, |
+ unsigned short port, |
+ ConnectionFlags); |
}; |
} // namespace chromeos |