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

Unified Diff: chrome/browser/chromeos/web_socket_proxy_controller.h

Issue 6683060: Private API for extensions like ssh-client that need access to TCP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed changes to rand_util_unittest Created 9 years, 7 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/chromeos/web_socket_proxy.cc ('k') | chrome/browser/chromeos/web_socket_proxy_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/chromeos/web_socket_proxy.cc ('k') | chrome/browser/chromeos/web_socket_proxy_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698