summaryrefslogtreecommitdiffstats
path: root/net/http/http_proxy_utils.h
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 03:34:07 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 03:34:07 +0000
commitfe2f62adb59d0ca3789312b55646e3d63ba8918f (patch)
treecdaeb552d4ffcb020b71ad1ebe9976b6b75ab175 /net/http/http_proxy_utils.h
parentd926c20f2588d7967a723f7454a0007740db0bc7 (diff)
downloadchromium_src-fe2f62adb59d0ca3789312b55646e3d63ba8918f.zip
chromium_src-fe2f62adb59d0ca3789312b55646e3d63ba8918f.tar.gz
chromium_src-fe2f62adb59d0ca3789312b55646e3d63ba8918f.tar.bz2
Fixes the tests written for http://codereview.chromium.org/3432009/show
to use DeterministicSocketData which should avoid the flaky test problem that 3432009 introduced. -- Add a new class SpdyProxyClientSocket which implements ClientSocket by sending a CONNECT request via a SPDY SYN_STREAM frame to a SPDY proxy, and then reading/writing data to/from SPDY Data frames. BUG=29625 TEST=none Review URL: http://codereview.chromium.org/3578002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_proxy_utils.h')
-rw-r--r--net/http/http_proxy_utils.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/http/http_proxy_utils.h b/net/http/http_proxy_utils.h
new file mode 100644
index 0000000..9d18fc8
--- /dev/null
+++ b/net/http/http_proxy_utils.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_HTTP_HTTP_PROXY_UTILS_H_
+#define NET_HTTP_HTTP_PROXY_UTILS_H_
+#pragma once
+
+#include <string>
+
+namespace net {
+
+struct HttpRequestInfo;
+class HttpRequestHeaders;
+class HostPortPair;
+
+// The HTTP CONNECT method for establishing a tunnel connection is documented
+// in draft-luotonen-web-proxy-tunneling-01.txt and RFC 2817, Sections 5.2 and
+// 5.3.
+void BuildTunnelRequest(const HttpRequestInfo& request_info,
+ const HttpRequestHeaders& auth_headers,
+ const HostPortPair& endpoint,
+ std::string* request_line,
+ HttpRequestHeaders* request_headers);
+
+} // namespace net
+
+#endif // NET_HTTP_HTTP_PROXY_UTILS_H_