summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction.h
diff options
context:
space:
mode:
authorbengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 08:12:27 +0000
committerbengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 08:12:27 +0000
commit597a1ab3ff262272a861c46cb98ce88902d12534 (patch)
tree0a4622f8bac771511ab7b2b553690722d65ef1d8 /net/http/http_transaction.h
parent31c017222fa340a24202b3c94c5f290a8ccb3b16 (diff)
downloadchromium_src-597a1ab3ff262272a861c46cb98ce88902d12534.zip
chromium_src-597a1ab3ff262272a861c46cb98ce88902d12534.tar.gz
chromium_src-597a1ab3ff262272a861c46cb98ce88902d12534.tar.bz2
Move data reduction proxy to Chrome-Proxy header for authentication
BUG=345907, 367268 Review URL: https://codereview.chromium.org/333113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r--net/http/http_transaction.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index ed1b20d..db8ed52 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -21,6 +21,7 @@ struct HttpRequestInfo;
class HttpResponseInfo;
class IOBuffer;
struct LoadTimingInfo;
+class ProxyInfo;
class QuicServerInfo;
class X509Certificate;
@@ -33,6 +34,12 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// ResumeNetworkStart is called before establishing a connection.
typedef base::Callback<void(bool* defer)> BeforeNetworkStartCallback;
+ // Provides an opportunity to add proxy-specific request headers. Called after
+ // it is determined that a proxy is being used and before the request headers
+ // are sent. |proxy_info| contains information about the proxy being used.
+ typedef base::Callback<void(
+ const ProxyInfo& proxy_info)> BeforeProxyHeadersSentCallback;
+
// Stops any pending IO and destroys the transaction object.
virtual ~HttpTransaction() {}
@@ -158,6 +165,11 @@ class NET_EXPORT_PRIVATE HttpTransaction {
virtual void SetBeforeNetworkStartCallback(
const BeforeNetworkStartCallback& callback) = 0;
+ // Set the callback to receive notification just before a proxy request
+ // is to be sent.
+ virtual void SetBeforeProxyHeadersSentCallback(
+ const BeforeProxyHeadersSentCallback& callback) = 0;
+
// Resumes the transaction after being deferred.
virtual int ResumeNetworkStart() = 0;
};