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

Unified Diff: net/test/base_test_server.h

Issue 10879029: reland: Launch pywebsocket via net::TestServer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 | « no previous file | net/test/base_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/base_test_server.h
diff --git a/net/test/base_test_server.h b/net/test/base_test_server.h
index 173abf7542537ca6c31f29c1d4fa06acb2d25adf..9f1290ebf17401b04271bc4156361fc4982bc67b 100644
--- a/net/test/base_test_server.h
+++ b/net/test/base_test_server.h
@@ -30,6 +30,8 @@ class BaseTestServer {
public:
typedef std::pair<std::string, std::string> StringPair;
+ // Following types represent protocol schemes. See also
+ // http://www.iana.org/assignments/uri-schemes.html
enum Type {
TYPE_BASIC_AUTH_PROXY,
TYPE_FTP,
@@ -180,6 +182,11 @@ class BaseTestServer {
const std::vector<StringPair>& text_to_replace,
std::string* replacement_path);
+ static bool UsingSSL(Type type) {
+ return type == BaseTestServer::TYPE_HTTPS ||
+ type == BaseTestServer::TYPE_WSS;
+ }
+
protected:
virtual ~BaseTestServer();
Type type() const { return type_; }
« no previous file with comments | « no previous file | net/test/base_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698