summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_factory.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 05:49:22 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 05:49:22 +0000
commitf7ede5d4d6971e85e99cd2c5a9052772903f9cd1 (patch)
tree5ef4de47926b27e0a9577405d54cae147783a723 /net/http/http_stream_factory.h
parent15c3a30248701935f315d88fc6da29a8fb9042e6 (diff)
downloadchromium_src-f7ede5d4d6971e85e99cd2c5a9052772903f9cd1.zip
chromium_src-f7ede5d4d6971e85e99cd2c5a9052772903f9cd1.tar.gz
chromium_src-f7ede5d4d6971e85e99cd2c5a9052772903f9cd1.tar.bz2
Add back support for --testing-fixed-http-port and --testing-fixed-https-port
This is necessary to test against local reverse proxies. BUG=none TEST=none Review URL: http://codereview.chromium.org/8932010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_factory.h')
-rw-r--r--net/http/http_stream_factory.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index bf56656..d84a981 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/string16.h"
#include "net/base/completion_callback.h"
@@ -243,6 +244,16 @@ class NET_EXPORT HttpStreamFactory {
}
static bool http_pipelining_enabled() { return http_pipelining_enabled_; }
+ static void set_testing_fixed_http_port(int port) {
+ testing_fixed_http_port_ = port;
+ }
+ static uint16 testing_fixed_http_port() { return testing_fixed_http_port_; }
+
+ static void set_testing_fixed_https_port(int port) {
+ testing_fixed_https_port_ = port;
+ }
+ static uint16 testing_fixed_https_port() { return testing_fixed_https_port_; }
+
protected:
HttpStreamFactory();
@@ -258,6 +269,8 @@ class NET_EXPORT HttpStreamFactory {
static std::list<HostPortPair>* forced_spdy_exclusions_;
static bool ignore_certificate_errors_;
static bool http_pipelining_enabled_;
+ static uint16 testing_fixed_http_port_;
+ static uint16 testing_fixed_https_port_;
DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
};